35 #ifndef SHARK_ALGORITHMS_TRAINERS_DISTRIBUTION_NORMAL_H 36 #define SHARK_ALGORITHMS_TRAINERS_DISTRIBUTION_NORMAL_H 41 #include <boost/accumulators/framework/accumulator_set.hpp> 42 #include <boost/accumulators/statistics/count.hpp> 43 #include <boost/accumulators/statistics/stats.hpp> 44 #include <boost/accumulators/statistics/variance.hpp> 45 #include <boost/bind/bind.hpp> 46 #include <boost/range/algorithm/for_each.hpp> 69 template <
typename RngType>
73 namespace bae = boost::accumulators::extract;
75 InternalAccumulatorType accu;
76 boost::range::for_each(input, boost::bind(boost::ref(accu), _1));
82 ?
bae::variance(accu) * bae::count(accu) / (bae::count(accu) - 1)
92 typedef boost::accumulators::accumulator_set<
94 boost::accumulators::stats<
95 boost::accumulators::tag::count,
101 #endif // SHARK_ALGORITHMS_TRAINERS_DISTRIBUTION_NORMAL_H