Main   Class Hierarchy   Classes   Compound List   Files   Compound Members   File Members   Pages  

PathFind::Statistics Class Reference

#include <statistics.h>

List of all members.


Detailed Description

Keeps track of the mean and variance of a variable.

Definition at line 25 of file statistics.h.

Public Member Functions

 Statistics ()
void add (double value)
void add (const Statistics &statistics)
void clear ()
double getCount () const
double getMean () const
double getDeviation () const
double getVariance () const
void print (ostream &o) const

Private Attributes

double m_count
double m_sum
double m_sumSq


Constructor & Destructor Documentation

Statistics::Statistics  ) 
 

Definition at line 21 of file statistics.cpp.

References clear().


Member Function Documentation

void Statistics::add const Statistics statistics  ) 
 

Definition at line 33 of file statistics.cpp.

References m_count, m_sum, and m_sumSq.

void Statistics::add double  value  ) 
 

Definition at line 26 of file statistics.cpp.

References m_count, m_sum, and m_sumSq.

Referenced by PathFind::FringeSearch< MARKER >::doIteration(), PathFind::IDAStar::findPath(), PathFind::FringeSearch< MARKER >::findPath(), PathFind::AStar< MARKER, CLOSED >::findPath(), PathFind::AStar< MARKER, CLOSED >::findPathAStar(), PathFind::IDAStar::findPathIdaStar(), PathFind::AStar< MARKER, CLOSED >::finishSearch(), and PathFind::IDAStar::searchPathIdaStar().

void Statistics::clear  ) 
 

Definition at line 40 of file statistics.cpp.

References m_count, m_sum, and m_sumSq.

Referenced by Statistics().

double PathFind::Statistics::getCount  )  const [inline]
 

Definition at line 36 of file statistics.h.

References m_count.

double PathFind::Statistics::getDeviation  )  const [inline]
 

Definition at line 46 of file statistics.h.

References getVariance().

Referenced by print().

double PathFind::Statistics::getMean  )  const [inline]
 

Definition at line 41 of file statistics.h.

References m_count, and m_sum.

Referenced by getVariance(), and print().

double Statistics::getVariance  )  const
 

Definition at line 47 of file statistics.cpp.

References getMean(), m_count, and m_sumSq.

Referenced by getDeviation().

void Statistics::print ostream &  o  )  const
 

Definition at line 53 of file statistics.cpp.

References getDeviation(), and getMean().

Referenced by PathFind::StatisticsCollection::print().


Member Data Documentation

double PathFind::Statistics::m_count [private]
 

Definition at line 56 of file statistics.h.

Referenced by add(), clear(), getCount(), getMean(), and getVariance().

double PathFind::Statistics::m_sum [private]
 

Definition at line 58 of file statistics.h.

Referenced by add(), clear(), and getMean().

double PathFind::Statistics::m_sumSq [private]
 

Definition at line 60 of file statistics.h.

Referenced by add(), clear(), and getVariance().


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


Generated on Thu Aug 7 13:05:26 2003 by Doxygen1.3.1