Package jebl.math
Class MachineAccuracy
java.lang.Object
jebl.math.MachineAccuracy
determines machine accuracy
- Version:
- $Id: MachineAccuracy.java 914 2008-05-22 05:14:44Z twobeers $
- Author:
- Korbinian Strimmer, Alexei Drummond
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
machine accuracy constantstatic final double
static final double
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EPSILON
public static final double EPSILONmachine accuracy constant- See Also:
-
SQRT_EPSILON
public static final double SQRT_EPSILON- See Also:
-
SQRT_SQRT_EPSILON
public static final double SQRT_SQRT_EPSILON- See Also:
-
-
Constructor Details
-
MachineAccuracy
public MachineAccuracy()
-
-
Method Details
-
same
public static boolean same(double a, double b) - Returns:
- true if the relative difference between the two parameters is no larger than SQRT_EPSILON. (TT: I think this means (b / (1+SQRT_EPSILON)) invalid input: '<'= a invalid input: '<'= b * (1+SQRT_EPSILON) )
-