boost::probabilities::domain_traits< Type, Domain, Value > Struct Template Reference

Domain-specific traits for likelihoods and probabilities. More...

#include <probabilities.hpp>

List of all members.

Static Public Member Functions

static const Value default_value ()
template<typename V>
static void assign_add (V &, V)
template<typename V>
static void assign_sub (V &, V)
template<typename V>
static void assign_mpy (V &, V)
template<typename V>
static void assign_div (V &, V)
template<typename SourceDomain, typename V>
static Value transform_domain (SourceDomain, V)
template<typename T>
static const Value min (T)
template<typename T>
static const Value max (T)
template<typename V>
static bool in_range (V v)
template<typename V>
static void truncate (V &v, V epsilon)
template<typename V>
static bool equal (Value p, V v)
template<typename V>
static bool less_than (Value p, V v)
template<typename V>
static bool greater_than (Value p, V v)
template<typename V>
static Value pow (Value, V)


Detailed Description

template<typename Type, typename Domain, typename Value>
struct boost::probabilities::domain_traits< Type, Domain, Value >

Domain-specific traits for likelihoods and probabilities.

This class provides domain-specific operations for likelihoods and probabilities. All of the differences between the two domains, linear_domain and log_domain, are factored into the specializations of this class. This is purely an implementation detail of the main classes, which allows general templating for both the domain type and the value type. Client code should have no need to refer to this class. It may be useful, however, for implementing certain classes that model the ValidatorConcept.


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