Calculates min/max/mean of a set of samples. More...
#include <b2Stat.h>
Public Member Functions | |
| void | Record (float32 t) |
| Record a sample. | |
| int | GetCount () const |
| Returns the number of recorded samples. | |
| float32 | GetMean () const |
| float32 | GetMin () const |
| float32 | GetMax () const |
| void | Clear () |
| Erase all recorded samples. | |
Calculates min/max/mean of a set of samples.
| float32 b2Stat::GetMax | ( | ) | const |
Returns the max of all recorded samples, -FLT_MAX if there are no recorded samples
| float32 b2Stat::GetMean | ( | ) | const |
Returns the mean of all recorded samples, Returns 0 if there are no recorded samples
| float32 b2Stat::GetMin | ( | ) | const |
Returns the min of all recorded samples, FLT_MAX if there are no recorded samples