生成一个Weibull分布。
template<class RealType = double>
class weibull_distribution {
public:
typedef RealType result_type;
struct param_type;
explicit weibull_distribution(result_type a0 = result_type(1.0),
result_type b0 = result_type(1.0));
explicit weibull_distribution(const param_type& par0);
result_type a() const;
result_type b() const;
param_type param() const;
void param(const param_type& par0);
result_type min() const;
result_type max() const;
void reset();
template<class Engine>
result_type operator()(Engine& eng);
template<class Engine>
result_type operator()(Engine& eng,
const param_type& par0);
private:
result_type stored_a;
result_type stored_b;
};
参数
Parameter |
说明 |
---|---|
IntType |
整数结果类型。 |
备注
生成一个用户指定的浮点类型的值随Weibull分发的此模板选件类描述 分发。
要求
标头: <random>
命名空间: std
请参见
参考
weibull_distribution::operator()