Constructors

Synopses

Declared in <absl/random/zipf_distribution.h>

Constructs a distribution with the default parameters.

Constructs a distribution from the given parameter set.

explicit
zipf_distribution(param_type const& p);

Constructs a distribution from the given parameters.

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

Parameters

Name

Description

p

The parameter set.

k

The largest value the distribution can produce.

q

The exponent parameter of the distribution.

v

The offset parameter of the distribution.

Created with MrDocs