Osiris Framework  0.3
OStats< VType > Class Template Reference

Template class to handle statistical data. More...

#include <OsirisSDK/OStats.hpp>

Public Member Functions

 OStats (int sampleSize=OSTATS_DEFAULT_SAMPLE_SIZE)
 Class constructor. More...
 
virtual ~OStats ()
 Class destructor.
 
void setSampleSize (int size)
 Set sample size.
 
int sampleSize () const
 Returns sample size.
 
void add (VType val)
 Add new entry to the ensamble.
 
float average () const
 Average value.
 
float stdev () const
 Standard deviation.
 

Detailed Description

template<class VType>
class OStats< VType >

Template class to handle statistical data.

Constructor & Destructor Documentation

template<class VType >
OStats< VType >::OStats ( int  sampleSize = OSTATS_DEFAULT_SAMPLE_SIZE)
inline

Class constructor.

Parameters
sampleSizeNumber of samples considered to provide statistical data.

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