[#absl-zipf_distribution-2constructor-02]
= xref:absl.adoc[absl]::xref:absl/zipf_distribution.adoc[zipf&lowbar;distribution]::zipf&lowbar;distribution
:relfileprefix: ../../
:mrdocs:

Constructs a distribution from the given parameters&period;

== Synopsis

Declared in `&lt;absl&sol;random&sol;zipf&lowbar;distribution&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
zipf&lowbar;distribution(
    xref:absl/zipf_distribution/result_type.adoc[result&lowbar;type] k,
    double q = 2&period;0,
    double v = 1&period;0);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *k*
| The largest value the distribution can produce&period;
| *q*
| The exponent parameter of the distribution&period;
| *v*
| The offset parameter of the distribution&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
