Encog.Neural.Networks.Training.Lma.LevenbergMarquardtTraining.CalculateSumOfSquaredWeights C# (CSharp) Method

CalculateSumOfSquaredWeights() private method

Calculate the sum squared of the weights.
private CalculateSumOfSquaredWeights ( ) : double
return double
        private double CalculateSumOfSquaredWeights()
        {
            double result = 0;


            foreach (double weight  in  _weights)
            {
                result += weight*weight;
            }

            return result/2.0d;
        }