std::numeric_limits for probabilities.
More...
#include <probabilities.hpp>
std::numeric_limits for probabilities.
In almost all instances, the functions and values encapsulated for std::numeric_limits<boost::probabilities::probability> are simply delegated to the corresponding functions and values for the underlying value_type. The following, however, are notable exceptions.
is_signed is false regardless of the value_type as probabilities cannot be negative.min() and max() return the extreme values for the internal value of a probability in the relevant domain. The range corresponds to
and
for the boost::probabilities::linear_domain and boost::probabilities::log_domain, respectively.min() returns the value of std::numeric_limits<Value>::min() for any domain. For types without denormalization, this corresponds to the minimum finite value representable by the internal type; for types with denormalization this corresponds to the minimum positive normalized value representable by the internal type. This seems to be the most appropriate interpretation of the intent of std:numeric_limits<>::min().max() returns a value of unity (1) for eny domain. This corresponds to the maximum value in the linear domain, which seems to be the most appropriate interpretation of the intent of std:numeric_limits<>::max().
1.4.5