Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <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));
 }