Method | Description | |
---|---|---|
BestMatchingUnit ( |
Construct a BestMatchingUnit class. The training class must be provided.
|
|
CalculateBMU ( ISynapse synapse, INeuralData input ) : int |
Calculate the best matching unit (BMU). This is the output neuron that has the lowest Euclidean distance to the input vector.
|
|
CalculateEuclideanDistance ( ISynapse synapse, INeuralData input, int outputNeuron ) : double |
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.
|
|
Reset ( ) : void |
Reset the "worst distance" back to a minimum value. This should be called for each training iteration.
|
public BestMatchingUnit ( |
||
training | The parent class. | |
return | System |
public CalculateBMU ( ISynapse synapse, INeuralData input ) : int | ||
synapse | ISynapse | The synapse to calculate for. |
input | INeuralData | The input vector. |
return | int |
public CalculateEuclideanDistance ( ISynapse synapse, INeuralData input, int outputNeuron ) : double | ||
synapse | ISynapse | The synapse to get the weights from. |
input | INeuralData | The input vector. |
outputNeuron | int | The neuron we are calculating the distance for. |
return | double |