Go to the previous, next section.
#include <CNCL/DiracTab.h>
CN_DIRACTAB
None
CNRNG
CNDiracTab generates random numbers according to a table with the
distribution function.
Constructors:
CNDiracTab();
CNDiracTab(CNParam *param);
CNDiracTab(CNDiracTabEntry *tab, long length, CNRNG *gen);
CNDiracTab distribution with a base random number
generator gen and a table tab with length length.
Example:
CNDiracTabEntry datafield[] = {{ 2, 0.1 },{ 4, 0.3 }, { 6, 0.6 }};
CNDiracTab example(datafield, 3, &generator);
In addition to the member functions required by CNCL, CNDiracTab
provides:
Go to the previous, next section.