[#mp_units-discrete_distribution-08-2constructor-08]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/discrete_distribution-08.adoc[discrete&lowbar;distribution]::discrete&lowbar;distribution
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;mp&hyphen;units&sol;random&period;h&gt;`

Default constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:mp_units/discrete_distribution-08/2constructor-016.adoc[discrete&lowbar;distribution]();
----

[.small]#xref:mp_units/discrete_distribution-08/2constructor-016.adoc[_» more&period;&period;&period;_]#

Construct from `initializer&lowbar;list`


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:mp_units/discrete_distribution-08/2constructor-0b.adoc[discrete&lowbar;distribution](std::initializer&lowbar;list&lt;double&gt; weights);
----

[.small]#xref:mp_units/discrete_distribution-08/2constructor-0b.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename InputIt&gt;
xref:mp_units/discrete_distribution-08/2constructor-018.adoc[discrete&lowbar;distribution](
    InputIt first,
    InputIt last);
----

[.small]#xref:mp_units/discrete_distribution-08/2constructor-018.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename UnaryOperation&gt;
xref:mp_units/discrete_distribution-08/2constructor-07.adoc[discrete&lowbar;distribution](
    std::size&lowbar;t count,
    double xmin,
    double xmax,
    UnaryOperation unary&lowbar;op);
----

[.small]#xref:mp_units/discrete_distribution-08/2constructor-07.adoc[_» more&period;&period;&period;_]#


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