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]

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 Clone for ZipfDistribution
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ZipfDistribution
[src]

impl Sample<usize> for ZipfDistribution
[src]

Deprecated since 0.5.0

: use Distribution instead

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

impl IndependentSample<usize> for ZipfDistribution
[src]

Deprecated since 0.5.0

: use Distribution instead

Generate a random value.

impl Distribution<usize> for ZipfDistribution
[src]

Generate a random value of T, using rng as the source of randomness.

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

impl Debug for ZipfDistribution
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations