Public Member Functions | List of all members
ibis::discreteZipf2 Class Reference

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

#include <twister.h>

Public Member Functions

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

Detailed Description

A specialized version of the Zipf distribution f(x) = 1/(1+x)^2.

Should be much faster than using discreteZipf(2,imax).


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