RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RunningStat Class Reference

#include <runningstat.h>

Public Member Functions

 RunningStat ()
 
 ~RunningStat ()
 
void clear ()
 
void push (double x)
 
int numValues () const
 
double mean () const
 
double var () const
 
double std () const
 
 RunningStat ()
 
 ~RunningStat ()
 
void clear ()
 
void push (double x)
 
int numValues () const
 
double mean () const
 
double var () const
 
double std () const
 

Private Attributes

int m_n
 
double m_oldM
 
double m_newM
 
double m_oldS
 
double m_newS
 

Detailed Description

Definition at line 8 of file runningstat.h.

Constructor & Destructor Documentation

RunningStat::RunningStat()

Definition at line 5 of file runningstat.cpp.

RunningStat::~RunningStat()

Definition at line 10 of file runningstat.cpp.

RunningStat::RunningStat()
RunningStat::~RunningStat()

Member Function Documentation

void RunningStat::clear()

Definition at line 15 of file runningstat.cpp.

void RunningStat::clear()
double RunningStat::mean()const

Definition at line 47 of file runningstat.cpp.

double RunningStat::mean()const
int RunningStat::numValues()const
int RunningStat::numValues()const

Definition at line 41 of file runningstat.cpp.

void RunningStat::push(double x)

Definition at line 21 of file runningstat.cpp.

void RunningStat::push(double x)
double RunningStat::std()const
double RunningStat::std()const

Definition at line 59 of file runningstat.cpp.

double RunningStat::var()const

Definition at line 53 of file runningstat.cpp.

double RunningStat::var()const

Member Data Documentation

int RunningStat::m_n
private

Definition at line 22 of file runningstat.h.

double RunningStat::m_newM
private

Definition at line 23 of file runningstat.h.

double RunningStat::m_newS
private

Definition at line 23 of file runningstat.h.

double RunningStat::m_oldM
private

Definition at line 23 of file runningstat.h.

double RunningStat::m_oldS
private

Definition at line 23 of file runningstat.h.


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