[R] Zipf random number generation

Weiguang Shi wgshi2001 at yahoo.ca
Wed Jan 26 22:24:13 CET 2005


Thank you very much again. Your code is really helpful
and it demontrates the power of R to a new-comer like
me.

 --- Ted.Harding at nessie.mcc.ac.uk wrote: 
> Understood! Though I think you mean
> 
>   1/c = sum(1.0 / pow((double) j, alpha)),
> j=1,2,...,N

You are right.

Weiguang




More information about the R-help mailing list