AForge.Neuro.Neuron.Neuron C# (CSharp) Method

Neuron() protected method

Initializes a new instance of the Neuron class.
The new neuron will be randomized (see Randomize method) after it is created.
protected Neuron ( int inputs ) : System
inputs int Neuron's inputs count.
return System
        protected Neuron( int inputs )
        {
            // allocate weights
            inputsCount = Math.Max( 1, inputs );
            weights = new double[inputsCount];
            // randomize the neuron
            Randomize( );
        }