Share via


student_t_distribution::student_t_distribution

Constructs the distribution.

explicit student_t_distribution(RealType n = 1.0);

explicit student_t_distribution(const param_type& parm);

Parameters

  • n
    The n distribution parameter.

  • parm
    The parameter package used to construct the distribution.

Remarks

**Precondition:**0.0 < n

The first constructor constructs an object whose stored n value holds the value n.

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>

student_t_distribution Class