Abstract

SUMMARY A one-line algorithm LB is given for generating samples from the logarithmic series distribution. Two independent uniform random variables are converted into a single logarithmic variable by use of a structural property of the distribution. Faster versions of the method, algorithms LBM and LK, employ simple initial tests which identify those pairs of uniform random variables which yield the most frequently occurring values of the logarithmic variable. Comparison with a search method, algorithm LS, shows that the search method is faster when the parameter a of the logarithmic distribution is less than about 095. However, values of a greater than 0 95 are often encountered. In ecological contexts os ranges from 0 9 to 0 9999; here the search method becomes prohibitively slow, and the algorithms based on the structural method are preferable. Both methods lead to very short, portable, procedures which require a trivial amount of storage.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call