Diffpack Documentation


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

EmpiricalStatistics Class Reference

base class for calculating statistics of random samples. More...

#include <empirstat.h>

Inheritance diagram for EmpiricalStatistics::

CorrAlongLine ExpecVar ExpecVarFieldFE ExpecVarFieldLattice Histogram TestOfNormality VectorMoments Extremes Moments MomentsFieldFE MomentsFieldLattice List of all members.

Public Methods

virtual ~EmpiricalStatistics ()
int getNoSamples ()
void setResponseName (const String &name)
String getResponseName ()

Protected Methods

 EmpiricalStatistics ()
void init ()

Protected Attributes

int nsamples
String response_name
bool new_samples_collected

Detailed Description

base class for calculating statistics of random samples.

NAME: EmpiricalStatistics - base class for calculating statistics of random samples

DESCRIPTION:

This is base class for calculating statistics of random samples. Specific of types statistical estimation methods must be implemented as classes derived from "EmpiricalStatistics". For example, there are subclasses for estimation of the first moments.


Constructor & Destructor Documentation

EmpiricalStatistics::EmpiricalStatistics ( ) [protected]
 

The constructor is called from subclasses. In addition, the function "setReponseName" must be called with a string reflecting the name of the statistical quantity to be estimated.

There are no virtual functions in this hierarhcy because it seldom makes sense to use a general estimator. Class derivation is therefore used for sharing code and for indicating a programming standard for all estimation classes.

EmpiricalStatistics::~EmpiricalStatistics ( ) [virtual]
 


Member Function Documentation

int EmpiricalStatistics::getNoSamples ( ) [inline]
 

returns the number of samples collected so far.

String EmpiricalStatistics::getResponseName ( ) [inline]
 

void EmpiricalStatistics::init ( ) [inline, protected]
 

Reimplemented in CorrAlongLine, ExpecVar, Moments, Extremes, ExpecVarFieldFE, ExpecVarFieldLattice, MomentsFieldLattice, Histogram, MomentsFieldFE, TestOfNormality, and VectorMoments.

void EmpiricalStatistics::setResponseName ( const String & name ) [inline]
 

sets the name of the statistical quantity to be estimated.


Member Data Documentation

bool EmpiricalStatistics::new_samples_collected [protected]
 

int EmpiricalStatistics::nsamples [protected]
 

String EmpiricalStatistics::response_name [protected]
 


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