Mathematical functions

template<typename Domain, typename Value, typename Validator, typename Integer>
likelihood< Domain, Value,
Validator > 
boost::probabilities::pow (const likelihood< Domain, Value, Validator > &base, Integer n)
 Power function of likelihoods.
template<typename Domain, typename Value, typename Validator, typename Integer>
probability< Domain, Value,
Validator > 
boost::probabilities::pow (const probability< Domain, Value, Validator > &base, Integer n)
 Power function of probabilities.

Detailed Description

Although many functions of probabilities and likelihoods exist, in almost all cases their return value no longer retains the properties of either. Consequently, attempting to provide a larger array of such functions within this library makes little sense. Instead, the values of probability or likelihood arguments can be extracted with value_cast<>() and the appropriate return value constructed.

There are, however, some mathematical functions that occur regularly in statistical modeling and whose return value does retain the properties of probabilities and likelihoods. Because of that, they are provided by the library.


Function Documentation

template<typename Domain, typename Value, typename Validator, typename Integer>
probability<Domain, Value, Validator> boost::probabilities::pow const probability< Domain, Value, Validator > &  base,
Integer  n
 

Power function of probabilities.

Note that probabilities raised to powers that are not natural numbers make little sense in the context of this library, as the result is no longer a probability. Consequently, this power function is only valid for integral exponents.

template<typename Domain, typename Value, typename Validator, typename Integer>
likelihood<Domain, Value, Validator> boost::probabilities::pow const likelihood< Domain, Value, Validator > &  base,
Integer  n
 

Power function of likelihoods.

Note that likelihoods raised to powers that are not natural numbers make little sense in the context of this library, as the result is no longer a likelihood. Consequently, this power function is only valid for integral exponents.


Generated on Thu Oct 18 11:10:28 2007 for Boost.Probability: C++ Probability and Likelihood Library by  doxygen 1.4.5