OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_StatisticsAccumulator.h>
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 |
A class that measures various statistics about a series of floating point values that it is given.
Definition at line 34 of file juce_StatisticsAccumulator.h.
|
default |
Constructs a new StatisticsAccumulator.
|
inlinenoexcept |
Add a new value to the accumulator. This will update all running statistics accordingly.
Definition at line 45 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 66 of file juce_StatisticsAccumulator.h.
|
inlinenoexcept |
Returns how many values have been added to this accumulator.
Definition at line 106 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 100 of file juce_StatisticsAccumulator.h.
|
inlinenoexcept |
Returns the smallest of all previously added values. If no values have been added yet, this will return positive infinity.
Definition at line 92 of file juce_StatisticsAccumulator.h.
|
inlinenoexcept |
Returns the standard deviation of all previously added values. If no values have been added yet, this will return zero.
Definition at line 84 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 75 of file juce_StatisticsAccumulator.h.
Referenced by juce::StatisticsAccumulator< FloatType >::getStandardDeviation().
|
inlinenoexcept |
Reset the accumulator. This will reset all currently saved statistcs.
Definition at line 60 of file juce_StatisticsAccumulator.h.