std::chi_squared_distribution
提供: cppreference.com
ヘッダ <random> で定義
|
||
template< class RealType = double > class chi_squared_distribution; |
(C++11以上) | |
chi_squared_distribution
はカイ二乗分布に従った x>0 の乱数を生成します。
- f(x;n) =
x(n/2)-1
e-x/2Γ(n/2) 2n/2
Γ はガンマ関数 (std::tgamma を参照)、 n は自由度 (デフォルト 1) です。
std::chi_squared_distribution
は RandomNumberDistribution の要件をすべて満たします。
目次 |
[編集] テンプレート引数
RealType | - | ジェネレータが生成する結果の型。 float、 double または long double のいずれかでない場合、効果は未定義です
|
[編集] メンバ型
メンバ型 | 定義 |
result_type
|
RealType |
param_type
|
パラメータセットの型、 RandomNumberDistribution を参照してください |
[編集] メンバ関数
新しい分布を構築します (パブリックメンバ関数) | |
分布の内部状態をリセットします (パブリックメンバ関数) | |
生成 | |
分布の次の乱数を生成します (パブリックメンバ関数) | |
特性 | |
分布のパラメータ、自由度 n を返します (パブリックメンバ関数) | |
分布のパラメータオブジェクトを取得または設定します (パブリックメンバ関数) | |
生成される可能性のある最小値を返します (パブリックメンバ関数) | |
生成される可能性のある最大値を返します (パブリックメンバ関数) |
[編集] 非メンバ関数
2つの分布オブジェクトを比較します (関数) | |
乱数分布に対してストリーム入出力を行います (関数テンプレート) |
[編集] 例
This section is incomplete Reason: no example |
[編集] 外部リンク
- Weisstein, Eric W. "Chi-Squared Distribution." From MathWorld--A Wolfram Web Resource.
- Chi-squared distribution. From Wikipedia.