|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.mathutil.BoundMath
public final class BoundMath
Java 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.
Method Summary | |
---|---|
static double |
cos(double a)
Calculate the cos. |
static double |
exp(double a)
Calculate the exp. |
static double |
log(double a)
Calculate the log. |
static double |
pow(double a,
double b)
Calculate the power of a number. |
static double |
sin(double a)
Calculate the sin. |
static double |
sqrt(double a)
Calculate the square root. |
static double |
tanh(double d)
Calculate TANH, within bounds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static double cos(double a)
a
- The value passed to the function.
public static double exp(double a)
a
- The value passed to the function.
public static double log(double a)
a
- The value passed to the function.
public static double pow(double a, double b)
a
- The base.b
- The exponent.
public static double sin(double a)
a
- The value passed to the function.
public static double sqrt(double a)
a
- The value passed to the function.
public static double tanh(double d)
d
- The value to calculate for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |