student_t_distribution::operator()

返回一个任意值。

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

参数

  • eng
    任意引擎。

  • par0
    使用的参数包返回任意值。

备注

当统一分配的随机整数值的来源和返回与每个值的情况下发生概率,的 x 浮点值的第一个成员运算符使用 引擎eng : pr(x) = 1 / √(n * pi) * ((gamma((n + 1) / 2)) / (gamma(n / 2))) * (1 + x² / n)^-((n + 1) / 2))。

第二个成员函数相同的行为,除此之外,使用在 par0存储的参数。

要求

标头: <random>

命名空间: std

请参见

参考

<random>

student_t_distribution Class