AForge.Neuro.Learning.ResilientBackpropagationLearning.ResetUpdates C# (CSharp) Method

ResetUpdates() private method

Resets the current update steps using the given learning rate.
private ResetUpdates ( double rate ) : void
rate double
return void
        private void ResetUpdates( double rate )
        {
            for ( int i = 0; i < weightsUpdates.Length; i++ )
            {
                for ( int j = 0; j < weightsUpdates[i].Length; j++ )
                {
                    for ( int k = 0; k < weightsUpdates[i][j].Length; k++ )
                    {
                        weightsUpdates[i][j][k] = rate;
                    }
                }
            }

            for ( int i = 0; i < thresholdsUpdates.Length; i++ )
            {
                for ( int j = 0; j < thresholdsUpdates[i].Length; j++ )
                {
                    thresholdsUpdates[i][j] = rate;
                }
            }
        }