Calculate pre-defined statistics given a range of values. More...
#include <shark/Statistics/Statistics.h>
Collaboration diagram for shark::Statistics:Classes | |
| struct | Histogram |
| Tags the histogram. More... | |
| struct | LowerQuartile |
| Tags the lower quartile. More... | |
| struct | Max |
| Tags the maximum value. More... | |
| struct | Mean |
| Tags the mean value. More... | |
| struct | Median |
| Tags the median. More... | |
| struct | Min |
| Tags the minimum value. More... | |
| struct | NumSamples |
| Tags the number of samples. More... | |
| struct | UnbiasedVariance |
| Tags the unbiased variance (not implemented). More... | |
| struct | UpperQuartile |
| Tags the upper quartile. More... | |
| struct | Variance |
| Tags the variance. More... | |
Public Member Functions | |
| Statistics (double lowerQuantileProbability=0.25, double upperQuantileProbability=0.75) | |
| Default c'tor. More... | |
| double | operator() (Mean mean) const |
| Accesses the mean value of the supplied values. More... | |
| double | operator() (Variance variance) const |
| Accesses the variance of the supplied values. More... | |
| histogram_type | operator() (Histogram histogram) const |
| Accesses the histogram of the supplied values. More... | |
| double | operator() (Median median) const |
| Accesses the median of the supplied values. More... | |
| double | operator() (LowerQuartile lq) const |
| Accesses the lower quartile of the supplied values. More... | |
| double | operator() (UpperQuartile uq) const |
| Accesses the upper quartile of the supplied values. More... | |
| double | operator() (Min min) const |
| Accesses the minimum of the supplied values. More... | |
| double | operator() (Max max) const |
| Accesses the maximum of the supplied values. More... | |
| std::size_t | operator() (NumSamples numSamples) const |
| Accesses the total number of samples. More... | |
| void | operator() (double d) |
| Updates statistics with the supplied value. More... | |
| template<class InputIterator > | |
| void | operator() (InputIterator begin, InputIterator end) |
| Calculates statistics for the supplied range of values. More... | |
Calculate pre-defined statistics given a range of values.
Calculate statistics from standard in:
Implemented in terms of boost::accumulators.
Definition at line 73 of file Statistics.h.
|
inline |
Default c'tor.
| [in] | lowerQuantileProbability | Probability for the lower quantile, default value: 0.25. |
| [in] | upperQuantileProbability | Probability for the upper quantile, default value: 0.75. |
Definition at line 147 of file Statistics.h.
|
inline |
Accesses the mean value of the supplied values.
Definition at line 155 of file Statistics.h.
References shark::mean().
|
inline |
Accesses the variance of the supplied values.
Definition at line 160 of file Statistics.h.
References shark::variance().
|
inline |
Accesses the histogram of the supplied values.
Definition at line 165 of file Statistics.h.
|
inline |
Accesses the median of the supplied values.
Definition at line 169 of file Statistics.h.
|
inline |
Accesses the lower quartile of the supplied values.
Definition at line 174 of file Statistics.h.
|
inline |
Accesses the upper quartile of the supplied values.
Definition at line 179 of file Statistics.h.
|
inline |
Accesses the minimum of the supplied values.
Definition at line 184 of file Statistics.h.
References shark::blas::min().
|
inline |
Accesses the maximum of the supplied values.
Definition at line 189 of file Statistics.h.
References shark::blas::max().
|
inline |
Accesses the total number of samples.
Definition at line 194 of file Statistics.h.
|
inline |
Updates statistics with the supplied value.
| [in] | d | The value. |
Definition at line 200 of file Statistics.h.
|
inline |
Calculates statistics for the supplied range of values.
| InputIterator | Iterator type, needs to be a model of forward iterator. |
| [in] | begin | Iterator pointing to the first valid element of the range. |
| [in] | end | Iterator pointing behind the last valid element of the range. |
Definition at line 213 of file Statistics.h.