1 #ifndef _theplu_yat_statistics_histogram_
2 #define _theplu_yat_statistics_histogram_
29 #include "AveragerWeighted.h"
30 #include "yat/utility/concept_check.h"
31 #include "yat/utility/iterator_traits.h"
33 #include <boost/concept_check.hpp>
41 namespace statistics {
102 int add(
const double x,
const double weight=1.0);
189 double xmax(
void)
const;
196 double xmin(
void)
const;
220 size_t bin(
double d);
222 std::vector<double> histogram_;
236 template<
typename ForwardIterator>
238 ForwardIterator first, ForwardIterator last)
240 BOOST_CONCEPT_ASSERT((boost::ForwardIterator<ForwardIterator>));
243 while (first!=last) {
254 std::ostream& operator<<(std::ostream& s,
const Histogram&);