コード例 #1
0
ファイル: DistanceLayer.cs プロジェクト: accord-net/framework
 /// <summary>
 /// Initializes a new instance of the <see cref="DistanceLayer"/> class.
 /// </summary>
 /// 
 /// <param name="neuronsCount">Layer's neurons count.</param>
 /// <param name="inputsCount">Layer's inputs count.</param>
 /// 
 /// <remarks>The new layet is randomized (see <see cref="Neuron.Randomize"/>
 /// method) after it is created.</remarks>
 /// 
 public DistanceLayer( int neuronsCount, int inputsCount )
     : base( neuronsCount, inputsCount )
 {
     // create each neuron
     for ( int i = 0; i < neuronsCount; i++ )
         neurons[i] = new DistanceNeuron( inputsCount );
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DistanceLayer"/> class.
 /// </summary>
 ///
 /// <param name="neuronsCount">Layer's neurons count.</param>
 /// <param name="inputsCount">Layer's inputs count.</param>
 ///
 /// <remarks>The new layet is randomized (see <see cref="Neuron.Randomize"/>
 /// method) after it is created.</remarks>
 ///
 public DistanceLayer(int neuronsCount, int inputsCount)
     : base(neuronsCount, inputsCount)
 {
     // create each neuron
     for (int i = 0; i < neuronsCount; i++)
     {
         neurons[i] = new DistanceNeuron(inputsCount);
     }
 }