Encog.Neural.SOM.Training.Neighborhood.BasicTrainSOM.Train C# (CSharp) Method

Train() private method

Train for the specified synapse and BMU.
private Train ( int bmu, Matrix matrix, IMLData input ) : void
bmu int The best matching unit for this input.
matrix Matrix The synapse to train.
input IMLData The input to train for.
return void
        private void Train(int bmu, Matrix matrix, IMLData input)
        {
            // adjust the weight for the BMU and its neighborhood
            for (int outputNeuron = 0; outputNeuron < _outputNeuronCount; outputNeuron++)
            {
                TrainPattern(matrix, input, outputNeuron, bmu);
            }
        }