/// <summary>returns true iff b - a is greater than the value in tolerance (useful for matching sorted mass lists)</summary> public static bool LessThanTolerance(double a, double b, MzTolerance tolerance) { return(a < b - tolerance); }
/// <summary>returns true iff a is in (b-tolerance, b+tolerance)</summary> public static bool IsWithinTolerance(double a, double b, MzTolerance tolerance) { return((a > b - tolerance) && (a < b + tolerance)); }