C# Class AForge.Neuro.DistanceNetwork

Distance network.
Distance network is a neural network of only one distance layer. The network is a base for such neural networks as SOM, Elastic net, etc.
Inheritance: Network
Show file Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Public Methods

Method Description
DistanceNetwork ( int inputsCount, int neuronsCount ) : System

Initializes a new instance of the DistanceNetwork class.

The new network is randomized (see Neuron.Randomize method) after it is created.

GetWinner ( ) : int

Get winner neuron.

The method returns index of the neuron, which weights have the minimum distance from network's input.

Method Details

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

GetWinner() public method

Get winner neuron.
The method returns index of the neuron, which weights have the minimum distance from network's input.
public GetWinner ( ) : int
return int