OpenMS
2.8.0
|
Predicate to check double equality with a given tolerance. More...
Public Member Functions | |
DoubleTolerancePredicate_ (const double &target, const double &tolerance) | |
bool | operator() (const double &value) const |
Returns true if | value - target | < tolerance . More... | |
Private Attributes | |
double | tolerance_ |
The allowed tolerance. More... | |
double | target_ |
The target value that should be found. More... | |
Predicate to check double equality with a given tolerance.
|
inline |
|
inline |
Returns true if | value
- target
| < tolerance
.
value | The value to test. |
value
- target
| < tolerance
, false otherwise.
|
private |
The target value that should be found.
|
private |
The allowed tolerance.