LiquidFun
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
b2Stat Class Reference

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.
 

Detailed Description

Calculates min/max/mean of a set of samples.

Member Function Documentation

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


The documentation for this class was generated from the following files: