Documentation For Encog 2.x

BestMatchingUnit.CalculateEuclideanDistance Method

Calculate the Euclidean distance for the specified output neuron and the input vector. This is the square root of the squares of the differences between the weight and input vectors.

public double CalculateEuclideanDistance(
   ISynapse synapse,
   INeuralData input,
   int outputNeuron
);

Parameters

synapse
The synapse to get the weights from.
input
The input vector.
outputNeuron
The neuron we are calculating the distance for.

Return Value

The Euclidean distance.

See Also

BestMatchingUnit Class | Encog.Neural.Networks.Training.Competitive Namespace