boost::probabilities::range_validator< Type, Value > Struct Template Reference

Range-enforcing validator. More...

#include <probabilities.hpp>

List of all members.

Public Types

typedef Value value_type

Static Public Member Functions

template<typename Domain>
static void is_valid (value_type v, Domain)


Detailed Description

template<typename Type, typename Value = double>
struct boost::probabilities::range_validator< Type, Value >

Range-enforcing validator.

This class models the ValidatorConcept and ensures that values are within the range, which is $ [0,\infty) $ and $ [0,1] $ for likelihoods and probabilities respectively. Because the range_validator introduces additional checks and incurs a performance penalty, it is not the default validator. However, it is provided for situations in which performance is less critical than a guarrantee that values lie strictly within the appropriate range.


The documentation for this struct was generated from the following file:
Generated on Thu Oct 18 11:10:29 2007 for Boost.Probability: C++ Probability and Likelihood Library by  doxygen 1.4.5