Pseudo-random number generation
提供: cppreference.com
![]() | このページは、Google 翻訳を使って英語版から機械翻訳されました。 翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
乱数ライブラリは、発電機エンジンのセット(擬似ランダム一様分布する整数のシーケンスを生成する乱数発生器や、真の乱数ジェネレータを使用可能な場合の両方)との均一な分布を変換乱数分布のクラスのセットを提供様々な統計的分布に発電機関.
Original:
The random number library provides a set of generator engines (both pseudo-random number generators, which generate integer sequences with a uniform distribution, and true random number generators if available) and a set of random number distribution classes which convert the uniform distribution of the generator engines into various statistical distributions.
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.
発電機関のすべてが具体的には、播種シリアライズ、および再現性のシミュレータで使用するためにデシリアライズすることができる.
Original:
All of the generator engines may be specifically seeded, serialized, and deserialized for use with repeatable simulators.
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.
[編集]乱数エンジン
乱数エンジンは、エントロピソースとしてシード·データを用いて擬似乱数を生成する。擬似乱数生成アルゴリズムのいくつかの異なるクラスをカスタマイズすることができますテンプレートとして実装されています.
Original:
Random number engines generate pseudo-random numbers using seed data as entropy source. Several different classes of pseudo-random number generation algorithms are implemented as templates that can be customized.
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.
使用するエンジンの選択はトレードオフの数が含まれます。線形合同エンジンが適度に高速であり、状態のための非常に小さなストレージ要件があります。遅れフィボナッチジェネレータが大きい状態のストレージと、時にはあまり望ましくないスペクトル特性を犠牲にして、高度な算術命令セットがなくても、プロセッサ上で非常に高速です。メルセンヌツイスターは遅いですし、大きい状態のストレージ要件を持っていますが、右側のパラメータで最も望ましいスペクトル特性(望ましいの特定の定義の場合)で最長の非反復配列を有する.
Original:
The choice of which engine to use involves a number of tradeoffs: the linear congruential engine is moderately fast and has a very small storage requirement for state. The lagged Fibonacci generators are very fast even on processors without advanced arithmetic instruction sets, at the expense of greater state storage and sometimes less desirable spectral characteristics. The Mersenne twister is slower and has greater state storage requirements but with the right parameters has the longest non-repeating sequence with the most desirable spectral characteristics (for a given definition of desirable).
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.
Defined in header <random> | |
(C++11) | 線形合同法アルゴリズムを実装しています Original: implements 線形合同法 algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | メルセンヌツイスターアルゴリズムを実装しています Original: implements メルセンヌツイスター algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | 道具はキャリー付き(フィボナッチの後塵を拝)アルゴリズムを引く Original: implements subtract with carry (a フィボナッチの後塵を拝) algorithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
[編集]乱数エンジンのアダプタ
乱数エンジンのアダプタは別の乱数エンジンをエントロピーソースとして使用して擬似乱数を生成する。彼らは一般的に、基礎となるエンジンの分光特性を変更するために使用され.
Original:
Random number engine adaptors generate pseudo-random numbers using another random number engine as entropy source. They are generally used to alter the spectral characteristics of the underlying engine.
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.
Defined in header <random> | |
(C++11) | 乱数エンジンのいくつかの出力を破棄します Original: discards some output of a random number engine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | 指定されたビット数のブロックに乱数エンジンの出力機能を搭載しています Original: packs the output of a random number engine into blocks of specified number of bits The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | 異なる順序で乱数エンジンの出力を提供します Original: delivers the output of a random number engine in different order The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
[編集]事前定義された乱数ジェネレータ
いくつかの具体的な一般的なアルゴリズムは、事前に定義されています.
Original:
Several specific popular algorithms are predefined.
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.
Defined in header <random> | |
タイプ Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | Definition |
minstd_rand0 | std::linear_congruential_engine<uint_fast32_t, 16807, 0, 2147483647> |
minstd_rand | std::linear_congruential_engine<uint_fast32_t, 48271, 0, 2147483647> |
mt19937 | std::mersenne_twister_engine<uint_fast32_t, 32, 624, 397, 31, 0x9908b0df, 11, |
mt19937_64 | std::mersenne_twister_engine<uint_fast64_t, 64, 312, 156, 31, 0xb5026f5aa96619e9, 29, |
ranlux24_base | std::subtract_with_carry_engine<uint_fast32_t, 24, 10, 24> |
ranlux48_base | std::subtract_with_carry_engine<uint_fast64_t, 48, 5, 12> |
ranlux24 | std::discard_block_engine<ranlux24_base, 223, 23> |
ranlux48 | std::discard_block_engine<ranlux48_base, 389, 11> |
knuth_b | std::shuffle_order_engine<minstd_rand0, 256> |
default_random_engine | 実装定義 Original: implementation-defined The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ハードウェアエントロピーソースを使用して、非決定論的乱数生成 Original: non-deterministic random number generator using hardware entropy source The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラス) |
[編集]乱数分布
乱数分布はポストプロセス結果出力が定義されている統計的な確率密度関数で配布されるような方法で乱数エンジンまたはアダプタの出力です.
Original:
Random number distributions are post-process the output of an random number engine or adaptors in such a way that resulting output is distributed on a defined statistical probability density function.
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.
Defined in header <random> | |
Original: Uniform distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) | 均等範囲に分散して整数値を生成します Original: produces integer values evenly distributed across a range The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | 均等範囲に分散して実際の値を生成します Original: produces real values evenly distributed across a range The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | 均等に)[0、1を挟んで与えられた精度の実数値を配布しています Original: evenly distributes real values of given precision across [0, 1) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数テンプレート) |
Original: Bernoulli distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) | bool上ベルヌーイ分布値を生成. Original: produces bool values on a ベルヌーイ分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラス) |
(C++11) | 二項分布上の整数値を生成. Original: produces integer values on a 二項分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
負の二項分布上の整数値を生成. Original: produces integer values on a 負の二項分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) | |
(C++11) | 幾何分布上の整数値を生成. Original: produces integer values on a 幾何分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
Original: Poisson distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) | ポアソン分布上の整数値を生成. Original: produces integer values on a ポアソン分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | 指数分布上の実際の値を生成する. Original: produces real values on an 指数分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | ガンマ分布上の実際の値を生成する. Original: produces real values on an ガンマ分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | ワイブル分布上の実際の値を生成する. Original: produces real values on a ワイブル分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | 極値分布上の実際の値を生成する. Original: produces real values on an 極値分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
Original: Normal distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) | 標準正規(ガウス)分布上の実際の値を生成する. Original: produces real values on a 標準正規(ガウス)分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | 対数正規分布上の実際の値を生成する. Original: produces real values on a 対数正規分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | カイ二乗分布上の実際の値を生成する. Original: produces real values on a カイ二乗分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | コーシー分布上の実際の値を生成する. Original: produces real values on a コーシー分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | フィッシャーのF分布上の実際の値を生成する. Original: produces real values on a フィッシャーのF分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
(C++11) | スチューデントのt-分布上の実際の値を生成する. Original: produces real values on a スチューデントのt-分布. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
Original: Sampling distributions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
(C++11) | 離散分布のランダムな整数を生成. Original: produces random integers on a discrete distribution. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
一定の区間に分布する真の値を生成する. Original: produces real values distributed on constant subintervals. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) | |
定義されている区間に分散実数値を生成します. Original: produces real values distributed on defined subintervals. The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラステンプレート) |
[編集]事前定義されたシードシーケンスジェネレータ
Defined in header <random> | |
(C++11) | 汎用スクランブルシードシーケンスジェネレータをバイアス排除 Original: general-purpose bias-eliminating scrambled seed sequence generator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (クラス) |
[編集]Cライブラリ
Defined in header <cstdlib> | |
擬似乱数を生成します Original: generates a pseudo-random number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
擬似乱数ジェネレータを初期化します Original: initializes pseudo-random number generator The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
std::randによって生成可能な最大値 Original: maximum possible value generated by std::rand The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (マクロ定数) |