#include <CNCL/BatchMeans.h>
CN_BatchMeans
CNStatistics
None
None
The class CNBatchMeans
provides the statistical evaluation of random
sequences by the Batch-Means method. Results are the distribution (d.f.) and
complementary distribution function (c.d.f.) respectively, a histogram of
relative frequencies,
Bayes-error and confidence intervals of each point of the d.f
and the c.d.f. respectively, and of the estimated mean and the variance of the
group means.
The evaluation needs at least n * h values; n is the number of batches and h the size of the batches if the constructor for fixed length evaluation is used. The evaluation is controlled by the relative Bayes error of the estimated mean when the constructor for variable length evaluation is used. For further information refer to "Principles of Discrete Event Simulation" by G.S. Fishman, J. Wiley & Sons, New York, 1978 and to "Improved Simulation by Application of the Objetive Bayes-Statistics" by F. Schreiber, AEUE, Vol. 34, pp. 234-249, 1980.
Constructors:
CNBatchMeans();
CNBatchMeans( CNParam *param );
CNBatchMeans( double bottom, double top, long intervals,
long size_of_groups, long no_of_groups, short conf = 95,
const char* name = NIL, const char* text = NIL );
CNBatchMeans( double bottom, double top, long intervals,
long size_of_groups, double max_rel_err, short conf = 95,
const char* name = NIL, const char* text = NIL );
CNBatchMeans
evaluation.The Parameters are:
bottom
top
Mmax_rel_err
no_of_groups
size_of_groups
intervals
name, text
In addition to the member functions required by CNCL and CNStatistics
,
CNBatchMeans
provides:
double bayes_err() const;
double sigma() const;
double mean_confidence() const;
long min_index() const;
long max_index() const;
long groups_done() const;
const struct CNBatchMeans::resultline *get_result(long index);
void change_error(double ne);
double p(double x) const;
double f(double x) const;
double g(double x) const;
double correlation() const;
virtual void print( Type type = CNStatistics::DF, ostream &strm = cout ) const;
CNStatistics::DF
, default) and c.d.f. (CNStatistics::CDF
), the
second is an user defined output stream.
Go to the first, previous, next, last section, table of contents.