private DetermineNewWeight ( double weight, double input, int currentNeuron, int bmu ) : double | ||
weight | double | The starting weight. |
input | double | The input to this neuron. |
currentNeuron | int | The neuron who's weight is being updated. |
bmu | int | The neuron that "won", the best matching unit. |
return | double |
private double DetermineNewWeight(double weight, double input,
int currentNeuron, int bmu)
{
double newWeight = weight
+ (this.neighborhood.Function(currentNeuron, bmu)
* this.LearningRate * (input - weight));
return newWeight;
}