Fennel: PoissonColumnGenerator< T > Class Template Reference (original) (raw)

Column generator which generates values with a Poisson distribution. More...

#include <[ExecStreamGenerator.h](ExecStreamGenerator%5F8h-source.html)>

Inheritance diagram for PoissonColumnGenerator< T >:

List of all members.

Public Member Functions
PoissonColumnGenerator (T startValue, double meanDistance, int batchSize, uint seed)
virtual ~PoissonColumnGenerator ()
T next ()
Private Member Functions
void generateBatch ()
Populates the next batch of values.
Private Attributes
T currentValue
vector< T > nextValues
batch of pre-generated values
int ordinalInBatch
position in the batch of the last value we returned
T batchUpper
upper bound of current batch, will be the lower bound of the next
std::subtractive_rng rng
double meanDistance

Detailed Description

template

class PoissonColumnGenerator< T >

Column generator which generates values with a Poisson distribution.

The Poisson distribution is a statistical distribution which characterizes the intervals between successive events. For example, consider a large sample of a radioactive isotope with a long half-life, and a Geiger counter measuring decay events. The number of events N between time t=0 and t=1 will be Poisson distributed.

This generator generates an ascending sequence of values with a given mean distance between values. For example, the sequence [3, 17, 24, 39, 45] might be the first five values generated if startValue = 0 and meanDistance = 10.

The generator generates a better statistical distribution if you give it a larger value of batchSize.

Definition at line 189 of file ExecStreamGenerator.h.


Constructor & Destructor Documentation


Member Function Documentation


Member Data Documentation

template

template

template

template

template

template


The documentation for this class was generated from the following file:


Generated on Mon Jun 22 04:00:40 2009 for Fennel by doxygen 1.5.1