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

ActivationLayer() public method

Initializes a new instance of the ActivationLayer class.
The new layer is randomized (see ActivationNeuron.Randomize method) after it is created.
public ActivationLayer ( int neuronsCount, int inputsCount, IActivationFunction function ) : System
neuronsCount int Layer's neurons count.
inputsCount int Layer's inputs count.
function IActivationFunction Activation function of neurons of the layer.
return System
		public ActivationLayer( int neuronsCount, int inputsCount, IActivationFunction function )
			: base( neuronsCount, inputsCount )
		{
			// create each neuron
			for ( int i = 0; i < neurons.Length; i++ )
				neurons[i] = new ActivationNeuron( inputsCount, function );
		}