Share via


fisher_f_distribution::operator()

Returns a random value.

template<class Engine>
    result_type operator()(Engine& eng);
template<class Engine>
    result_type operator()(Engine& eng,
        const param_type& par0);

Parameters

  • eng
    The random engine.

  • par0
    The parameter package used to return the random value.

Remarks

The first member operator uses the engineeng as a source of uniformly distributed random integral values and returns floating-point values with each value x occurring with probability: Pr(x) = gamma((m + n) / 2) / (gamma(m / 2) * gamma(n / 2)) * (m^(m / 2) / n) * x^(m / 2 - 1) * (1 + (m * x) / n)^-((m + n) / 2)

The second member function behaves the same, except that it uses the parameters stored in par0.

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

fisher_f_distribution Class