Share via


lognormal_distribution::lognormal_distribution

Constructs the distribution.

lognormal_distribution(result_type m0 = result_type(0.0),
    result_type s0 = result_type(1.0));
explicit lognormal_distribution(const param_type& par0);

Parameters

  • m0
    The m distribution parameter.

  • s0
    The s distribution parameter.

  • par0
    The parameter package used to construct the distribution.

Remarks

Precondition: 0.0 < s0

The first constructor constructs an object whose stored value stored_m holds the value m0 and whose stored value stored_s holds the value s0.

The second constructor constructs an object whose stored parameters are initialized from par0.

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

lognormal_distribution Class

Other Resources

<random> Members