std::numeric_limits for likelihoods.
More...
#include <likelihoods.hpp>
std::numeric_limits for likelihoods.
In almost all instances, the functions and values encapsulated for std::numeric_limits<boost::probabilities::likelihood> are simply delegated to the corresponding functions and values for the underlying value_type. The following points are worthy of note.
is_signed is false regardless of the value_type as likelihoods are considered to be proportional to probabilities with a positive constant of proportionality.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 the value of std::numeric_limits<Value>::max() for any domain. For types without denormalization, this corresponds to the maximum finite value representable by the internal type; for types with denormalization this corresponds to the maximum positive normalized value representable by the internal type. This seems to be the most appropriate interpretation of the intent of std:numeric_limits<>::max(). Note that this behavior is unlike the specialization for the boost::probabilities::probability class, which instead returns unity (1) as a consequence of the closed interval for probabilities.
1.4.5