Encog.Neural.Networks.Training.Competitive.CompetitiveTraining.DetermineNewWeight C# (CSharp) Méthode

DetermineNewWeight() private méthode

Determine the weight adjustment for a single neuron during a training iteration.
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.
Résultat 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;
        }