Iterative calculation of variance. More...
#include <statistics_fwd.hpp>
Public Types | |
typedef numeric::functional::fdiv < Sample, std::size_t > ::result_type | result_type |
typedef mpl::false_ | is_droppable |
Public Member Functions | |
template<typename Args > | |
variance_impl (Args const &args) | |
template<typename Args > | |
void | operator() (Args const &args) |
result_type | result (dont_care) const |
detail::void_ | operator() (dont_care) |
detail::void_ | add_ref (dont_care) |
detail::void_ | drop (dont_care) |
detail::void_ | on_drop (dont_care) |
Iterative calculation of variance.
Iterative calculation of sample variance according to the formula
where
is the estimate of the sample mean and is the number of samples.
Note that the sample variance is not defined for .
A simplification can be obtained by the approximate recursion
because the difference
converges to zero as . However, for small the difference can be non-negligible.
|
inherited |
typedef numeric::functional::fdiv<Sample, std::size_t>::result_type boost::accumulators::impl::variance_impl< Sample, MeanFeature, Tag >::result_type |
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
References count, boost::parameter::keyword< Tag >::get(), and boost::accumulators::extract::mean.
|
inline |