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

Constructors

== Synopses

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

Constructs a distribution with the default parameters&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/zipf_distribution/2constructor-05.adoc[zipf&lowbar;distribution]();
----

[.small]#xref:absl/zipf_distribution/2constructor-05.adoc[_» more&period;&period;&period;_]#

Constructs a distribution from the given parameter set&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:absl/zipf_distribution/2constructor-09.adoc[zipf&lowbar;distribution](xref:absl/zipf_distribution/param_type.adoc[param&lowbar;type] const& p);
----

[.small]#xref:absl/zipf_distribution/2constructor-09.adoc[_» more&period;&period;&period;_]#

Constructs a distribution from the given parameters&period;


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

[.small]#xref:absl/zipf_distribution/2constructor-02.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p*
| The parameter set&period;
| *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]#
