Struct zipf::ZipfDistribution [] [src]

pub struct ZipfDistribution { /* fields omitted */ }

Random number generator that generates Zipf-distributed random numbers using rejection inversion.

Methods

impl ZipfDistribution
[src]

[src]

Creates a new Zipf-distributed random number generator.

Note that both the number of elements and the exponent must be greater than 0.

Trait Implementations

impl Sample<isize> for ZipfDistribution
[src]

[src]

Generate a random value of Support, using rng as the source of randomness. Read more

impl Debug for ZipfDistribution
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations