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

DistanceNetwork() public method

Initializes a new instance of the DistanceNetwork class.
The new network is randomized (see Neuron.Randomize method) after it is created.
public DistanceNetwork ( int inputsCount, int neuronsCount ) : System
inputsCount int Network's inputs count.
neuronsCount int Network's neurons count.
return System
        public DistanceNetwork( int inputsCount, int neuronsCount )
            : base( inputsCount, 1 )
        {
            // create layer
            layers[0] = new DistanceLayer( neuronsCount, inputsCount );
        }