Documentation For Encog 2.x

BestMatchingUnit.CalculateBMU Method

Calculate the best matching unit (BMU). This is the output neuron that has the lowest Euclidean distance to the input vector.

public int CalculateBMU(
   ISynapse synapse,
   INeuralData input
);

Parameters

synapse
The synapse to calculate for.
input
The input vector.

Return Value

The output neuron number that is the BMU.

See Also

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