public member function

std::chi_squared_distribution::n

<random>
result_type n() const;
Degrees of freedom
Returns parameter n associated with the chi_square_distribution object.

This parameter is known as the degrees of freedom of the chi-square distribution.

This parameter is set on construction.

Parameters

none

Return value

The n parameter (degrees of freedom) associated with the distribution object.

Complexity

Constant.

See also