std::chi_squared_distribution
性病:CHI[医]平方[医]分布
Defined in header | | |
---|---|---|
template< class RealType = double > class chi_squared_distribution; | | (since C++11) |
大chi_squared_distribution生成随机数x>0,根据x-平方分布F%28 x;n%29=
X%28N/2%29-1 e-x/2
*。
Γ%28N/2%29 2n/2
Γ是伽马函数%28也见std::tgamma
%29和n为自由
度%28http://en.wikipara.com/wiki/dies自由
28统计数字%29%29%28默认1%29。
std::chi_squared_distribution
满足…的所有要求RandomNumberDistribution
...
模板参数
RealType | - | The result type generated by the generator. The effect is undefined if this is not one of float, double, or long double. |
---|
成员类型
Member type | Definition |
---|---|
result_type | RealType |
param_type | the type of the parameter set, see RandomNumberDistribution. |
成员函数
(constructor) | constructs new distribution (public member function) |
---|---|
reset | resets the internal state of the distribution (public member function) |
世代
运算符%28%29在分布%28公共成员函数%29中生成下一个随机数。
特征
n返回自由度%28n%29分布参数%28公共成员函数%29
Param获取或设置分布参数对象%28公共成员函数%29
min返回最小潜在生成值%28公共成员函数%29
MAX返回最大潜在生成值%28公共成员函数%29
非会员职能
operator==operator!= | compares two distribution objects (function) |
---|---|
operator<<operator>> | performs stream input and output on pseudo-random number distribution (function template) |
例
外部链接
- 韦斯斯坦,埃里克W.“x-平方分布”。来自MathWorld的一个Wolfram Web资源。
- x-平方分布维基百科的。
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。