Package org.aavso.tools.vstar.util
Class Tolerance
java.lang.Object
org.aavso.tools.vstar.util.Tolerance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareClose(double a, double b, double epsilon, boolean absolute) Determine if two values are equivalent within a tolerance range
-
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 compareb- The second value to compareepsilon- The tolerance rangeabsolute- Whether or not to use a hard range for absolute mode or a range relative to both values individually
-