chickadee » srfi-194 » make-zipf-generator

make-zipf-generator N #!optional s qprocedure

Returns a generator that yields exact integers k from the generalized Zipf distribution 1/(k+q^s) such that 1 ≤ k ≤ N). The default value of s is 1.0 and the default value of q is 0.0. Parameters outside the following ranges are likely to result in overflows or loss of precision: -10 < s < 100, -0.5 < q < 2^8, and 1 ≤ N.

The following three procedures generate points of real k-dimensional Euclidean space. These points are modeled as Scheme vectors of real numbers of length k.