Stat Class Reference
[pydtn]

Simple statistical accumulator. More...

#include <pydtn/Statistics.h>

List of all members.

Public Member Functions

 Stat ()
 Constructor.
 ~Stat ()
 Destructor.
unsigned long n () const
 
Returns:
number of entries accumulated

unsigned long s () const
 
Returns:
sum of the entries

unsigned long w () const
 
Returns:
weight of the entries (sum of the squares)

double mean () const
 
Returns:
average of the entries

double var () const
 
Returns:
variance of the entries

double sigma () const
 
Returns:
standard deviation of the entries

void add (unsigned long val)
 
Parameters:
val An entry to accumulate

void reset ()
 Sets all counts (entries, sum, and weight) to zero.


Detailed Description

Simple statistical accumulator.

Definition at line 46 of file Statistics.h.


The documentation for this class was generated from the following files:
Generated on Mon Mar 24 11:15:47 2008 for Pydtn Simulator by  doxygen 1.5.4