Share via


lognormal_distribution::lognormal_distribution

Constructs the distribution.

explicit lognormal_distribution(RealType m = 0.0, RealType s = 1.0);

explicit lognormal_distribution(const param_type& parm);

Parameters

  • m
    The m distribution parameter.

  • s
    The s distribution parameter.

  • parm
    The parameter structure used to construct the distribution.

Remarks

**Precondition:**0.0 < s

The first constructor constructs an object whose stored m value holds the value m and whose stored s value holds the value s.

The second constructor constructs an object whose stored parameters are initialized from parm. You can obtain and set the current parameters of an existing distribution by calling the param() member function.

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

lognormal_distribution Class