Go to the first, previous, next, last section, table of contents.


CNTab -- Distribution from Table of CDF

SYNOPSIS

#include <CNCL/Tab.h>

TYPE

CN_TAB

BASE CLASSES

CNRandom

DERIVED CLASSES

CNInterTab

RELATED CLASSES

CNRNG

DESCRIPTION

CNTab requires a table with samples.

Constructors:

CNTab();
CNTab(CNParam *param);
CNTab(double *tab, long length, CNRNG *gen);
Initializes a CNTab distribution with a base random number generator gen, a table of values tab, and length length. Example:
double datafield[]={ 2, 4, 6, 8, 10, 12 };
CNTab ex(datafield, 6, &generator);

In addition to the member functions required by CNCL, CNTab provides:

virtual double operator() ();
Draws a random number.


Go to the first, previous, next, last section, table of contents.