Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

ExpecVar Class Reference

estimation of the expectation and standard devation of a random variable. More...

#include <empirstat.h>

Inheritance diagram for ExpecVar::

EmpiricalStatistics Extremes Moments List of all members.

Public Methods

 ExpecVar ()
 ~ExpecVar ()
void init ()
void update (real random_variable)
void printResults (Os os)
void intermediateResults (Os os)
real getExpec ()
real getStDev ()

Protected Methods

void estimator ()

Protected Attributes

real zm1
real zm2
real exp
real var

Detailed Description

estimation of the expectation and standard devation of a random variable.

NAME: ExpecVar - estimation of the expectation and standard devation of a random variable

DESCRIPTION:

The class offers estimators for the expectation and the standard deviation of a random variable. The class offers functions for updating statistics and printing of intermediate results during sampling as well as functions for returning the calculated statistical quanities.


Constructor & Destructor Documentation

ExpecVar::ExpecVar ( ) [inline]
 

ExpecVar::~ExpecVar ( ) [inline]
 


Member Function Documentation

void ExpecVar::estimator ( ) [protected]
 

Reimplemented in Moments.

real ExpecVar::getExpec ( ) [inline]
 

returns the current estimated expectation value.

real ExpecVar::getStDev ( ) [inline]
 

returns the current estimated standard deviation value.

void ExpecVar::init ( ) [inline]
 

resets and initializes internal data structures.

Reimplemented from EmpiricalStatistics.

Reimplemented in Moments, and Extremes.

void ExpecVar::intermediateResults ( Os os )
 

prints the curent expectation and standard deviation values.

Reimplemented in Moments, and Extremes.

void ExpecVar::printResults ( Os os )
 

same as "intermediateResults".

Reimplemented in Moments, and Extremes.

void ExpecVar::update ( real random_variable )
 

adds a new sample to the estimators.

Reimplemented in Moments, and Extremes.


Member Data Documentation

real ExpecVar::exp [protected]
 

real ExpecVar::var [protected]
 

real ExpecVar::zm1 [protected]
 

real ExpecVar::zm2 [protected]
 


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.