Share via


weibull_distribution::weibull_distribution

explicit weibull_distribution(RealType a = 1.0, RealType b = 1.0);

explicit weibull_distribution(const param_type& parm);

Parameters

  • a
    The a distribution parameter.

  • b
    The b distribution parameter.

  • parm
    The parameter structure used to construct the distribution.

Remarks

**Precondition:**0.0 < a and 0.0 < b

The first constructor constructs an object whose stored avalue holds the value a and whose stored b value holds the value b.

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>

weibull_distribution Class