11 #ifndef __ERROR_MODULE_HEADER
12 #define __ERROR_MODULE_HEADER
23 struct requirement<tag::error> {
28 template<
typename T,
typename _base>
29 class module<T, tag::error, _base>:
public _base {
39 sum2_ += error_type(in) * in;
41 error_type
std()
const {
43 return sqrt((sum2_ - base::mean() * base::mean() * base::count()) / (base::count() - 1));
47 return std() / sqrt(base::count());
58 #endif //__ERROR_MODULE_HEADER
S & operator<<(S &os, oss_class< D, max_buf > const &arg)
Definition: serializer.hpp:158
Definition: module.hpp:33
ustd::conditional< detail::use_double_identifier< T >::value, double, T >::type type
Definition: mean_trait.hpp:44
module()
Definition: error_module.hpp:34
Definition: meta_list.hpp:17
error_type std() const
Definition: error_module.hpp:41
void clear()
Definition: error_module.hpp:49
error_type m_std() const
Definition: error_module.hpp:45
void operator<<(T const &in)
Definition: error_module.hpp:37