help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Zipf Random Number Generator


From: Martin Jansche
Subject: Re: [Help-gsl] Zipf Random Number Generator
Date: Wed, 28 May 2008 17:00:30 -0400

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 <address@hidden> 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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gsl
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]