Classes for incremental computation of statistical properties. More...
#include <cmath>
#include <iostream>
#include <limits>
#include <map>
#include <sstream>
#include <string>
#include <vector>
#include "SgException.h"
#include "SgWrite.h"
Go to the source code of this file.
Classes | |
class | SgStatisticsBase< VALUE, COUNT > |
Computes mean of a statistical variable. More... | |
class | SgStatistics< VALUE, COUNT > |
Computes mean and variance of a statistical variable. More... | |
class | SgStatisticsExt< VALUE, COUNT > |
Extended version of SgStatistics. More... | |
class | SgStatisticsCollection< VALUE, COUNT > |
Set of named statistical variables. More... | |
class | SgHistogram< VALUE, COUNT > |
Histogram. More... |
Classes for incremental computation of statistical properties.
The classes SgStatisticsBase (mean), SgStatistics (mean, variance) and SgStatisticsExt (mean, variance, min, max) are extensions of each other, but don't derive from each other, to avoid the overhead of virtual functions and because a base class has can (or could in the future) have functions that are not supported in derived classes (like removing a sample, which is easy in SgStatisticsBase, but not possible in SgStatisticsExt). However, member functions with the same meaning have the same name, so that the classes are easily replacable in user code and can be used as template arguments.
Definition in file SgStatistics.h.