Package jebl.math

Class MachineAccuracy


  • public class MachineAccuracy
    extends java.lang.Object
    determines machine accuracy
    Version:
    $Id: MachineAccuracy.java 914 2008-05-22 05:14:44Z twobeers $
    Author:
    Korbinian Strimmer, Alexei Drummond
    • Constructor Summary

      Constructors 
      Constructor Description
      MachineAccuracy()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean same​(double a, double b)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MachineAccuracy

        public MachineAccuracy()
    • Method Detail

      • 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)) <= a <= b * (1+SQRT_EPSILON) )