#include <probabilities.hpp>
Public Types | |
| typedef Value | value_type |
Static Public Member Functions | |
| template<typename Domain> | |
| static void | is_valid (value_type &v, Domain) |
| static value_type | epsilon () |
| Inspect the tolerance imposed on the boundaries. | |
| static value_type | epsilon (value_type epsilon) |
| Set the tolerance imposed on the boundaries. | |
This class models the ValidatorConcept and ensures that values are within range. Additionally, values outside of the range but within epsilon of the boundaries are truncated to the appropriate boundary. This is to handle the corner cases that might occur due to floating point round-off errors, even when operating on well-defined values of likelihood or probability.
|
||||||||||
|
Set the tolerance imposed on the boundaries.
Set the tolerance imposed on the boundaries and return the previous tolerance. Due to round-off errors, floating point values outside this range may result, even when operating on well-defined value of likelihood or probability. Small deviations (e.g., determined by |
|
|||||||||
|
Inspect the tolerance imposed on the boundaries.
Due to round-off errors, floating point values outside this range may result, even when operating on well-defined values of likelihood or probability. Small deviations (e.g., determined by |
1.4.5