piecewise_linear_distribution::operator()

返回一个任意值。

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

参数

  • eng
    任意引擎。

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

备注

第一个成员运算符使用 引擎eng,因为统一分配的随机整数值的源并返回包含每个值 x 浮点值的范围在发生的概率取决于最小元素 x < stored;x[I + 1}和 x 的其他值的 [stored_x.front(), stored_x.back()) 发生的概率零的 I。值 x 统一分配在与更改从 stored_p[I] 的概率的大小 [stored_x[I], stored_x[I + 1]) 到 stored_p[I + 1]。

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

要求

标头: <random>

命名空间: std

请参见

参考

<random>

piecewise_linear_distribution Class