RunningStats Class Reference

#include <running_stats.hh>

List of all members.

Public Member Functions

void addSample (double new_value)
double getMean (void)
double getStandardDeviation (void)
double getVariance (void)
void reset (void)
 RunningStats ()

Private Attributes

int N_
double sum2_
double sum_

Detailed Description

Definition at line 27 of file running_stats.hh.


Constructor & Destructor Documentation

RunningStats::RunningStats (  )  [inline]

Definition at line 29 of file running_stats.hh.


Member Function Documentation

void RunningStats::addSample ( double  new_value  )  [inline]

Definition at line 35 of file running_stats.hh.

double RunningStats::getMean ( void   )  [inline]

Definition at line 51 of file running_stats.hh.

double RunningStats::getStandardDeviation ( void   )  [inline]

Definition at line 67 of file running_stats.hh.

double RunningStats::getVariance ( void   )  [inline]

Definition at line 57 of file running_stats.hh.

void RunningStats::reset ( void   )  [inline]

Definition at line 43 of file running_stats.hh.


Member Data Documentation

int RunningStats::N_ [private]

Definition at line 73 of file running_stats.hh.

double RunningStats::sum2_ [private]

Definition at line 75 of file running_stats.hh.

double RunningStats::sum_ [private]

Definition at line 74 of file running_stats.hh.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Defines


velodyne_common
Author(s): Jack O'Quin, Patrick Beeson, Michael Quinlan, Yaxin Liu
autogenerated on Fri Jan 11 10:05:56 2013