C# Class Accord.Neuro.DistanceNetwork

Inheritance: Network
Show file Open project: accord-net/framework 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