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