Devroye gives a rejection method for sampling from the Zipf distribution here: http://cg.scs.carleton.ca/~luc/chapter_ten.pdf
-- mj On Wed, May 28, 2008 at 4:25 PM, Michael Duerr <[EMAIL PROTECTED]> wrote: > Hi, > > I'm looking for a function that can produce random numbers that are > Zipf-distributed? > Something like: > > int zipfian(double skew, int N), > > where skew is the skew factor (e.g. 0.4) and N the upper limit of the range > (e.g. [0, N) ) > > Does gsl hold something similar or can you provide me a reference for a > sample implementation? > > Thanks, > Michael > > > _______________________________________________ > Help-gsl mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-gsl > _______________________________________________ Help-gsl mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gsl
