pal.math
Class MachineAccuracy
java.lang.Object
pal.math.MachineAccuracy
public class MachineAccuracy
- extends java.lang.Object
determines machine accuracy
- Version:
- $Id: MachineAccuracy.java,v 1.4 2001/09/09 22:17:11 alexi Exp $
- 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.