Class Tolerance

java.lang.Object
org.aavso.tools.vstar.util.Tolerance

public class Tolerance extends Object
  • Constructor Details

    • Tolerance

      public Tolerance()
  • Method Details

    • areClose

      public static boolean areClose(double a, double b, double epsilon, boolean absolute)
      Determine if two values are equivalent within a tolerance range
      Parameters:
      a - The first value to compare
      b - The second value to compare
      epsilon - The tolerance range
      absolute - Whether or not to use a hard range for absolute mode or a range relative to both values individually