[#mp_units-piecewise_constant_distribution-2constructor-09]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/piecewise_constant_distribution.adoc[piecewise&lowbar;constant&lowbar;distribution]::piecewise&lowbar;constant&lowbar;distribution
:relfileprefix: ../../
:mrdocs:

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename UnaryOperation&gt;
piecewise&lowbar;constant&lowbar;distribution(
    std::size&lowbar;t nw,
    Q const& xmin,
    Q const& xmax,
    UnaryOperation fw);
----


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