Encog.Neural.Thermal.HopfieldNetwork.ConvertHopfieldMatrix C# (CSharp) Method

ConvertHopfieldMatrix() private method

Update the Hopfield weights after training.
private ConvertHopfieldMatrix ( Matrix delta ) : void
delta Matrix The amount to change the weights by.
return void
        private void ConvertHopfieldMatrix(Matrix delta)
        {
            // add the new weight matrix to what is there already
            for (int row = 0; row < delta.Rows; row++)
            {
                for (int col = 0; col < delta.Rows; col++)
                {
                    AddWeight(row, col, delta[row, col]);
                }
            }
        }