18#ifndef VOTCA_TOOLS_AVERAGE_H
19#define VOTCA_TOOLS_AVERAGE_H
32 template <
typename iterator_type>
33 void ProcessRange(
const iterator_type &begin,
const iterator_type &end);
49 av_ = av_ * (double)n_ / (
double)(n_ + 1) + value / (
double)(n_ + 1);
62template <
typename iterator_type>
64 const iterator_type &end) {
65 for (iterator_type iter = begin; iter != end; ++iter) {
72 return std::sqrt((m2_ - n_ * av_ * av_) / (n_ - 1));
78 dev = m2_ / n_ - av_ * av_;
base class for all analysis tools