public member function
<random>

std::chi_squared_distribution::n

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