|
LMMS
|
#include <juce_StatisticsAccumulator.h>
Classes | |
| struct | KahanSum |
Public Member Functions | |
| StatisticsAccumulator ()=default | |
| void | addValue (FloatType v) noexcept |
| void | reset () noexcept |
| FloatType | getAverage () const noexcept |
| FloatType | getVariance () const noexcept |
| FloatType | getStandardDeviation () const noexcept |
| FloatType | getMinValue () const noexcept |
| FloatType | getMaxValue () const noexcept |
| size_t | getCount () const noexcept |
Private Attributes | |
| size_t | count { 0 } |
| KahanSum | sum |
| KahanSum | sumSquares |
| FloatType | minimum { std::numeric_limits<FloatType>::infinity() } |
| FloatType | maximum { -std::numeric_limits<FloatType>::infinity() } |
A class that measures various statistics about a series of floating point values that it is given.
@tags{Core}
|
default |
Constructs a new StatisticsAccumulator.
|
inlinenoexcept |
Add a new value to the accumulator. This will update all running statistics accordingly.
|
inlinenoexcept |
Returns the average (arithmetic mean) of all previously added values. If no values have been added yet, this will return zero.
|
inlinenoexcept |
Returns how many values have been added to this accumulator.
|
inlinenoexcept |
Returns the largest of all previously added values. If no values have been added yet, this will return negative infinity.
|
inlinenoexcept |
Returns the smallest of all previously added values. If no values have been added yet, this will return positive infinity.
|
inlinenoexcept |
Returns the standard deviation of all previously added values. If no values have been added yet, this will return zero.
|
inlinenoexcept |
Returns the variance of all previously added values. If no values have been added yet, this will return zero.
|
inlinenoexcept |
Reset the accumulator. This will reset all currently saved statistcs.
|
private |
|
private |
|
private |
|
private |
|
private |