35 #ifndef MULTOVL_PROB_EMPIRDISTR_HEADER
36 #define MULTOVL_PROB_EMPIRDISTR_HEADER
42 #include "boost/accumulators/accumulators.hpp"
43 #include "boost/accumulators/statistics.hpp"
44 using namespace boost::accumulators;
72 explicit Exception(
const std::string& msg):
75 const std::string error_message()
const {
return _message; }
107 double high() const throw(Exception);
115 double cdf(
double x) const throw(Exception);
120 double mean() const throw(Exception);
125 double variance() const throw(Exception);
129 double std_dev() const throw(Exception);
133 typedef accumulator_set<
double,
135 tag::count, tag::min, tag::max,
136 tag::mean, tag::lazy_variance,
137 stats<tag::p_square_cumulative_distribution>
140 typedef std::pair<
double,
double> histogram_bin_t;
141 typedef std::vector<histogram_bin_t>::iterator histogram_iter_t;
142 typedef boost::iterator_range<histogram_iter_t> histogram_t;
147 bool operator()(
const histogram_bin_t& it,
double x)
149 return (it.first < x);
155 histogram_t _histogram;
165 #endif // MULTOVL_PROB_EMPIRDISTR_HEADER
Definition: empirdistr.hh:69
Definition: empirdistr.hh:58