13#ifndef EVT_VAL_ERROR_HH
14#define EVT_VAL_ERROR_HH
47 void print( std::ostream& )
const;
66template <
class InputIterator,
class Predicate>
74 if ( pred( *it++ ) ) itsPassed++;
77 return EvtValError( ( (
double)itsPassed ) / ( (
double)itsTried ),
78 sqrt( itsPassed ) / ( (
double)itsTried ) );
std::ostream & operator<<(std::ostream &, const EvtValError &)
EvtValError operator+(const EvtValError &x1, const EvtValError &x2)
EvtValError operator/(const EvtValError &x1, const EvtValError &x2)
EvtValError accept_reject(InputIterator it, InputIterator end, Predicate pred)
EvtValError operator*(const EvtValError &x1, const EvtValError &x2)
void operator=(const EvtValError &other)
void operator/=(const EvtValError &other)
void operator+=(const EvtValError &other)
void operator*=(const EvtValError &other)
void print(std::ostream &) const