Distance layer.
Distance layer is a layer of distance neurons. The layer is usually a single layer of such networks as Kohonen Self Organizing Map, Elastic Net, Hamming Memory Net.
Inheritance: Layer
Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DistanceNetwork"/> class
 /// </summary>
 /// 
 /// <param name="inputsCount">Network's inputs count</param>
 /// <param name="neuronsCount">Network's neurons count</param>
 /// 
 /// <remarks>The new network will be randomized (see <see cref="Neuron.Randomize"/>
 /// method) after it is created.</remarks>
 /// 
 public DistanceNetwork( int inputsCount, int neuronsCount )
     : base(inputsCount, 1)
 {
     // create layer
     layers[0] = new DistanceLayer( neuronsCount, inputsCount );
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DistanceNetwork"/> class.
 /// </summary>
 ///
 /// <param name="inputsCount">Network's inputs count.</param>
 /// <param name="neuronsCount">Network's neurons count.</param>
 ///
 /// <remarks>The new network is randomized (see <see cref="Neuron.Randomize"/>
 /// method) after it is created.</remarks>
 ///
 public DistanceNetwork(int inputsCount, int neuronsCount)
     : base(inputsCount, 1)
 {
     // create layer
     layers[0] = new DistanceLayer(neuronsCount, inputsCount);
 }