|
#include <SampleAccumulator.hh>
|
typedef Numeric | value_type |
|
typedef Precise | precise_type |
|
|
static const char * | classname () |
|
static unsigned | version () |
|
static void | restore (const gs::ClassId &id, std::istream &in, SampleAccumulator *acc) |
|
template<typename Numeric, typename Precise = typename PreciseType<Numeric>::type>
class npstat::SampleAccumulator< Numeric, Precise >
Accumulator of values (or items) for the purpose of calculating statistical summaries in a numerically stable manner.
Note that calculating quantiles using "median", "cdf", and "quantile" methods makes subsequent calls to the "cov" and "corr" methods impossible (a dynamic fault will be generated). This is because the data is sorted internally for quantile calculations, and subsequent covariance calculation with sorted samples will return a result which is most likely not intended.
◆ accumulate() [1/3]
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
◆ accumulate() [2/3]
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Accumulate more than one value at a time
◆ accumulate() [3/3]
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Accumulate the sample from another accumulator
◆ cdf()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Empirical cumulative distribuition function
◆ classId()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Method related to "geners" I/O
◆ count()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Number of items in the accumulated sample
◆ cov()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
template<typename Numeric2 , typename Precise2 >
Covariance and correlation with another accumulator. That other accumulator must have the same number of points stored. Note that "cov" and "corr" methods typically make sense only for the original, unmodified sequences of data values. If the data points have been sorted (which happens internally whenever one of the methods "median", "cdf", "quantile", or "nBelow" is called), covariance and correlation can produce rather unexpected results. To prevent any confusion, this class will throw an exception of type std::runtime_error in case "cov" or "corr" is called after the data in any of the two accumulators has been sorted. Basically, if you plan to calculate covariances between accumulators, do it before calculating any quantiles or cdf values.
◆ data()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Note that the result returned by this method may be invalidated by a call to any non-const method
◆ location()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Standard plotting accessor
◆ max()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Maximum value in the accumulated sample
◆ mean()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Accumulated sample average
◆ meanUncertainty()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Uncertainty of the population mean
◆ median()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Accumulated sample median
◆ min()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Minimum value in the accumulated sample
◆ nBelow()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Exact number of points below the given value
◆ noThrowMean()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Accumulated sample average. Will not throw an exception if no data is accumulated. Instead, the provided function argument will be returned.
◆ noThrowMeanUncertainty()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Uncertainty of the mean. Will not throw an exception if no data is accumulated. Instead, the provided function argument will be returned.
◆ noThrowStdev()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Standard deviation estimate. Will not throw an exception if no data is accumulated. Instead, the provided function argument will be returned.
◆ operator!=()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Logical negation of operator==
◆ operator*=()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
template<typename Num2 >
Multiply every entry by a constant
◆ operator/=()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
template<typename Num2 >
Divide every entry by a constant
◆ operator==()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
◆ quantile()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Empirical quantile function
◆ reserve()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Reserve memory for data to be accumulated in the future
◆ reset()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Clear all accumulated data
◆ sigmaRange()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Robust scale corresponding to the standard deviation for points distributed according to the Gaussian distribution
◆ stdev()
template<typename Numeric , typename Precise = typename PreciseType<Numeric>::type>
Estimate of the population standard deviation
The documentation for this class was generated from the following file:
|