jebl.math
Class MachineAccuracy
java.lang.Object
jebl.math.MachineAccuracy
public class MachineAccuracy
- extends Object
determines machine accuracy
- Author:
- Korbinian Strimmer, Alexei Drummond
Method Summary |
static double |
computeEpsilon()
compute EPSILON from scratch |
static boolean |
same(double a,
double b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EPSILON
public static double EPSILON
- machine accuracy constant
SQRT_EPSILON
public static double SQRT_EPSILON
SQRT_SQRT_EPSILON
public static double SQRT_SQRT_EPSILON
MachineAccuracy
public MachineAccuracy()
computeEpsilon
public static double computeEpsilon()
- compute EPSILON from scratch
same
public static boolean same(double a,
double b)
- Returns:
- true if the relative difference between the two parameters
is smaller than SQRT_EPSILON.