Encog.MathUtil.ComplexNumber.Mod C# (CSharp) Méthode

Mod() public méthode

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

            return 0d;
        }