org.encog.neural.som.training.basic
public class BestMatchingUnit extends Object
Constructor and Description |
---|
BestMatchingUnit(SOM som)
Construct a BestMatchingUnit class.
|
Modifier and Type | Method and Description |
---|---|
int |
calculateBMU(MLData input)
Calculate the best matching unit (BMU).
|
double |
calculateEuclideanDistance(Matrix matrix,
MLData input,
int outputNeuron)
Calculate the Euclidean distance for the specified output neuron and the
input vector.
|
double |
getWorstDistance() |
void |
reset()
Reset the "worst distance" back to a minimum value.
|
public BestMatchingUnit(SOM som)
som
- The SOM to evaluate.public int calculateBMU(MLData input)
input
- The input vector.public double calculateEuclideanDistance(Matrix matrix, MLData input, int outputNeuron)
matrix
- The matrix to get the weights from.input
- The input vector.outputNeuron
- The neuron we are calculating the distance for.public double getWorstDistance()
public void reset()
Copyright © 2014. All Rights Reserved.