absl::zipf_distribution::zipf_distribution

Constructors

Synopses

Declared in <absl/random/zipf_distribution.h>

Constructs a distribution with the default parameters.

zipf_distribution();
» more...

Constructs a distribution from the given parameter set.

explicit
zipf_distribution(param_type const& p);
» more...

Constructs a distribution from the given parameters.

explicit
zipf_distribution(
    result_type k,
    double q = 2.0,
    double v = 1.0);
» more...

Parameters

NameDescription
pThe parameter set.
kThe largest value the distribution can produce.
qThe exponent parameter of the distribution.
vThe offset parameter of the distribution.