1 #ifndef _theplu_yat_statistics_smoother_
2 #define _theplu_yat_statistics_smoother_
27 #include "yat/utility/iterator_traits.h"
29 #include <boost/concept_check.hpp>
35 namespace regression {
38 namespace statistics {
55 const std::vector<double>& values);
68 double xmin,
double xmax,
size_t n);
73 void add(
double x,
double weight=1.0);
78 const std::vector<double>&
density(
void)
const;
95 const std::vector<double>&
value(
void)
const;
98 std::vector<double> density_;
101 std::vector<double> x_;
109 template<
typename ForwardIterator>
111 ForwardIterator first, ForwardIterator last)
113 BOOST_CONCEPT_ASSERT((boost::ForwardIterator<ForwardIterator>));
115 while (first!=last) {
126 std::ostream& operator<<(std::ostream& s,
const Smoother&);