Go to the previous, next section.
#include <CNCL/Statistics.h>
CN_STATISTICS
CNObject
CNMoments, CNLRE, CNDLRE, CNBatches
None
CNStatistics
is the base class of all statistics classes. It
defines the common interface.
Constructors:
CNStatistics();
CNStatistics( CNParam *param );
CNStatistics
.
The evaluation phases and types supported by CNStatistics
are:
enum Phase { INITIALIZE=0, ITERATE=1, END=2 };
enum Type { DF=0, CDF=1, PF=2 };
DF
as distribution function, CDF
as complementary distribution
function and PF
as probability function.
In addition to the member functions required by CNCL, CNStatistics
provides:
virtual void put( double ) = 0;
virtual double mean() const = 0;
virtual double variance() const = 0;
virtual long trials() const = 0;
virtual double min() const = 0;
virtual double max() const = 0;
virtual bool end() const = 0;
TRUE
if end of evaluation is reached else
FALSE
.
CNMoments
evaluation, the return value is always
FALSE
.
virtual void reset() = 0;
virtual Phase status() const = 0;
Go to the previous, next section.