OpenShot Library | libopenshot-audio 0.2.0
|
A class that measures various statistics about a series of floating point values that it is given. More...
#include <juce_StatisticsAccumulator.h>
Public Member Functions | |
StatisticsAccumulator ()=default | |
Constructs a new StatisticsAccumulator. | |
void | addValue (FloatType v) noexcept |
Add a new value to the accumulator. | |
void | reset () noexcept |
Reset the accumulator. | |
FloatType | getAverage () const noexcept |
Returns the average (arithmetic mean) of all previously added values. | |
FloatType | getVariance () const noexcept |
Returns the variance of all previously added values. | |
FloatType | getStandardDeviation () const noexcept |
Returns the standard deviation of all previously added values. | |
FloatType | getMinValue () const noexcept |
Returns the smallest of all previously added values. | |
FloatType | getMaxValue () const noexcept |
Returns the largest of all previously added values. | |
size_t | getCount () const noexcept |
Returns how many values have been added to this accumulator. | |
A class that measures various statistics about a series of floating point values that it is given.
Definition at line 38 of file juce_StatisticsAccumulator.h.
|
inlinenoexcept |
Add a new value to the accumulator.
This will update all running statistics accordingly.
Definition at line 49 of file juce_StatisticsAccumulator.h.
|
inlinenoexcept |
Reset the accumulator.
This will reset all currently saved statistcs.
Definition at line 64 of file juce_StatisticsAccumulator.h.
|
inlinenoexcept |
Returns the average (arithmetic mean) of all previously added values.
If no values have been added yet, this will return zero.
Definition at line 70 of file juce_StatisticsAccumulator.h.
|
inlinenoexcept |
Returns the variance of all previously added values.
If no values have been added yet, this will return zero.
Definition at line 79 of file juce_StatisticsAccumulator.h.
Referenced by juce::StatisticsAccumulator< FloatType >::getStandardDeviation().
|
inlinenoexcept |
Returns the standard deviation of all previously added values.
If no values have been added yet, this will return zero.
Definition at line 88 of file juce_StatisticsAccumulator.h.
References juce::StatisticsAccumulator< FloatType >::getVariance().
|
inlinenoexcept |
Returns the smallest of all previously added values.
If no values have been added yet, this will return positive infinity.
Definition at line 96 of file juce_StatisticsAccumulator.h.
|
inlinenoexcept |
Returns the largest of all previously added values.
If no values have been added yet, this will return negative infinity.
Definition at line 104 of file juce_StatisticsAccumulator.h.
|
inlinenoexcept |
Returns how many values have been added to this accumulator.
Definition at line 110 of file juce_StatisticsAccumulator.h.