「cpp/numeric/random/gamma distribution/operator()」の版間の差分
提供: cppreference.com
< cpp | numeric | random | gamma distribution
細 (1版:Translate from the English version) |
細 (r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh) |
||
1行: | 1行: | ||
{{cpp/numeric/random/distribution/operator()|gamma_distribution}} | {{cpp/numeric/random/distribution/operator()|gamma_distribution}} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ |
2012年11月2日 (金) 20:16時点における版
template< class Generator > result_type operator()( Generator& g ); |
(1) | (C++11以上) |
template< class Generator > result_type operator()( Generator& g, const param_type& params ); |
(2) | (C++11以上) |
紐付けられている確率関数に従って分布する乱数を生成します。 エントロピーは g.operator() を呼ぶことによって取得されます。
1つめのバージョンは紐付けられているパラメータセットを使用し、2つめのバージョンは params
を使用します。 紐付けられているパラメータセットは変更されません。
引数
g | - | 一様なランダムビットのジェネレータオブジェクト |
params | - | 紐付けられたパラメータセットの代わりに使用する分布のパラメータセット |
型の要件 | ||
-Generator は UniformRandomBitGenerator の要件を満たさなければなりません。
|
戻り値
生成された乱数。
計算量
償却定数回の g.operator() の呼び出し。