std::discrete_distribution::operator()
提供: cppreference.com
< cpp | numeric | random | discrete distribution
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
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()を呼び出すことによって取得された.
Original:
Generates random numbers that are distributed according to the associated probability function. The entropy is acquired by calling g.operator().
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
最初のバージョンは、関連付けられたパラメータセットを使用して、2番目のバージョンは、
params
を使用しています。関連するパラメータセットは変更されません.Original:
The first version uses the associated parameter set, the second version uses
params
. The associated parameter set is not modified.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] パラメータ
g | - | 一様乱数ジェネレータオブジェクト
Original: an uniform random number generator object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
params | - | 分布のパラメータが関連付けられているものの代わりに使用するように設定します
Original: distribution parameter set to use instead of the associated one The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
生成された乱数.
Original:
The generated random number.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[編集] 複雑
g.operator()の呼び出しの償却定数.
Original:
Amortized constant number of invocations of g.operator().
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.