21 #ifndef mia_2d_seriesstats_hh 22 #define mia_2d_seriesstats_hh 68 template <
typename Container>
69 void operator () (
const Container& data);
79 mutable bool m_stats_valid;
82 template <
typename Container>
85 m_stats_valid =
false;
86 m_stats.n += data.size();
87 for (
auto i = data.begin(); i != data.end(); ++i) {
89 m_stats.sumsq += *i * *i;
double sumsq
Sum of the squares of all values.
double sum
Sum of all values.
base class for all filer type functors.
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Functor to accumulate statistics of data.
double mean
mean of all values
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
void operator()(const Container &data)
data structure to store te results of a statistical analyis of images
double variation
variation of the values
#define NS_MIA_END
conveniance define to end the mia namespace