Encog.MathUtil.ComplexNumber.Mod C# (CSharp) Method

Mod() public method

Modulus of this Complex number (the distance from the origin in polar coordinates).
public Mod ( ) : double
return double
        public double Mod()
        {
            if (_x != 0 || _y != 0)
            {
                return Math.Sqrt(_x*_x + _y*_y);
            }

            return 0d;
        }