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) |
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.
| OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:10 using doxygen 1.8.13 |