C# Class Encog.MathUtil.BoundMath

C# will sometimes return Math.NaN or Math.Infinity when numbers get to large or too small. This can have undesirable effects. This class provides some basic math functions that may be in danger of returning such a value. This class imposes a very large and small ceiling and floor to keep the numbers within range.
Afficher le fichier Open project: encog/encog-silverlight-core

Méthodes publiques

Méthode Description
Cos ( double a ) : double

Calculate the cos.

Exp ( double a ) : double

Calculate the exp.

Log ( double a ) : double

Calculate the log.

Pow ( double a, double b ) : double

Calculate the power of a number.

Sin ( double a ) : double

Calculate the sin.

Sqrt ( double a ) : double

Calculate the square root.

Method Details

Cos() public static méthode

Calculate the cos.
public static Cos ( double a ) : double
a double The value passed to the function.
Résultat double

Exp() public static méthode

Calculate the exp.
public static Exp ( double a ) : double
a double The value passed to the function.
Résultat double

Log() public static méthode

Calculate the log.
public static Log ( double a ) : double
a double The value passed to the function.
Résultat double

Pow() public static méthode

Calculate the power of a number.
public static Pow ( double a, double b ) : double
a double The base.
b double The exponent.
Résultat double

Sin() public static méthode

Calculate the sin.
public static Sin ( double a ) : double
a double The value passed to the function.
Résultat double

Sqrt() public static méthode

Calculate the square root.
public static Sqrt ( double a ) : double
a double The value passed to the function.
Résultat double