18 #ifndef __BFL_CONSTANTS_H__ 19 #define __BFL_CONSTANTS_H__ 21 #define NUMERIC_PRECISION 0.000000001 24 #define M_PI 3.141592653589793284626433832795 44 assert(std::isfinite(p) != 0);
69 double getValue()
const {
return _prob;} ;
70 double& getValue() {
return _prob;} ;
72 operator double(){
return _prob;};
74 {
return ((
Probability) (this->_prob * (
double) p));};
76 {
return ((
Probability) (this->_prob / (
double) p));};
std::basic_ostream< E, T > & operator<<(std::basic_ostream< E, T > &os, const vector_expression< VE > &v)
output stream operator for vector expressions
std::basic_istream< E, T > & operator>>(std::basic_istream< E, T > &is, vector< VT, VA > &v)
input stream operator for vectors
Class representing a probability (a double between 0 and 1)