Inverse cumulative random sequence generator
It uses a sequence of uniform deviate in (0, 1) as the source of cumulative distribution values. Then an inverse cumulative distribution is used to calculate the distribution deviate.
The uniform deviate sequence is supplied by USG.
Class USG must implement the following interface:
USG::sample_type USG::nextSequence() const; Size USG::dimension() const;
The inverse cumulative distribution is supplied by IC.
Class IC must implement the following interface:
IC::IC(); Real IC::operator() const;
Inverse cumulative random sequence generator
It uses a sequence of uniform deviate in (0, 1) as the source of cumulative distribution values. Then an inverse cumulative distribution is used to calculate the distribution deviate.
The uniform deviate sequence is supplied by USG.
Class USG must implement the following interface:
USG::sample_type USG::nextSequence() const; Size USG::dimension() const;
The inverse cumulative distribution is supplied by IC.
Class IC must implement the following interface:
IC::IC(); Real IC::operator() const;