Go to the documentation of this file.
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;
83 template <
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;
const SIntensityStats & get_result() const
Functor to accumulate statistics of data.
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
data structure to store te results of a statistical analyis of images
#define NS_MIA_END
conveniance define to end the mia namespace
base class for all filer type functors.
double sumsq
Sum of the squares of all values.
double sum
Sum of all values.
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
double mean
mean of all values
void operator()(const Container &data)
double variation
variation of the values
FIntensityStatsAccumulator()