![]() |
OpenMS
|
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. | |
Private Attributes | |
| double | tolerance_ |
| The allowed tolerance. | |
| double | target_ |
| The target value that should be found. | |
Predicate to check double equality with a given tolerance.
|
inline |
|
inline |
Returns true if | value - target | < tolerance.
| [in] | value | The value to test. |
value - target | < tolerance, false otherwise.
|
private |
The target value that should be found.
|
private |
The allowed tolerance.