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

Layer() protected method

Initializes a new instance of the Layer class.
Protected contructor, which initializes inputsCount, neuronsCount and neurons members.
protected Layer ( int neuronsCount, int inputsCount ) : System
neuronsCount int Layer's neurons count.
inputsCount int Layer's inputs count.
return System
        protected Layer( int neuronsCount, int inputsCount )
        {
            this.inputsCount = Math.Max( 1, inputsCount );
            this.neuronsCount = Math.Max( 1, neuronsCount );
            // create collection of neurons
            neurons = new Neuron[this.neuronsCount];
        }