Public Member Functions
ibis::discreteZipf1 Class Reference

A specialized case of the Zipf distribution f(x) = 1/(1+x). More...

#include <twister.h>

List of all members.

Public Member Functions

 discreteZipf1 (ibis::uniformRandomNumber &ur, unsigned long imax=100)
unsigned long next ()
unsigned long operator() ()
 Return a discrete random number in the range of [0, imax].

Detailed Description

A specialized case of the Zipf distribution f(x) = 1/(1+x).

This implementation was the result of earlier experimentation, it is not necessarily faster than the generic version.


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

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive