AForge.Neuro.ActivationNeuron.Randomize C# (CSharp) Method

Randomize() public method

Randomize neuron.
Calls base class Randomize method to randomize neuron's weights and then randomizes threshold's value.
public Randomize ( ) : void
return void
        public override void Randomize( )
        {
            // randomize weights
            base.Randomize( );
            // randomize threshold
            threshold = rand.NextDouble( ) * ( randRange.Length ) + randRange.Min;
        }