lognormal_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 / (s * x * √(2 * pi)) * e^-((ln(x) - m)² / (2 * x²))

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

要求

标头: <random>

命名空间: std

请参见

参考

<random>

lognormal_distribution Class