Share via


cauchy_distribution::cauchy_distribution

Constructs the distribution.

cauchy_distribution(result_type a0 = result_type(0.0),
    result_type b0 = result_type(1.0));
explicit cauchy_distribution(const param_type& par0);

Parameters

  • a0
    The a distribution parameter.

  • b0
    The b distribution parameter.

  • par0
    The parameter package used to construct the distribution.

Remarks

Precondition: 0.0 < b0

The first constructor constructs an object whose stored value stored_a holds the value a0 and whose stored value stored_b holds the value b0.

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

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

cauchy_distribution Class

Other Resources

<random> Members