多変量正規乱数のジェネレータ [詳細]
#include <random.h>
Public メソッド | |
| random () | |
| デフォルトコンストラクタ | |
| random (const matrix< double > &mean, const matrix< double > &covariance) | |
| コンストラクタ | |
| random (const unsigned long seed, const matrix< double > &mean, const matrix< double > &covariance) | |
| コンストラクタ | |
| random (const array< unsigned long > &seed_array, const matrix< double > &mean, const matrix< double > &covariance) | |
| コンストラクタ | |
| void | init (const unsigned long &seed) |
| seedで初期化 | |
| void | set_param (const matrix< double > &mean, const matrix< double > &covariance) |
| 正規乱数のパラメータ指定 | |
| matrix< double > | generate () |
| 指定された平均・標準偏差の正規乱数を生成 | |
| matrix< double > | operator() () |
| 指定された平均・標準偏差の正規乱数を生成 | |
多変量正規乱数のジェネレータ
平均ベクトルと共分散行列を指定し,正規乱数ジェネレータを用いて多変量正規乱数(ベクトル)を発生させるクラス.
|
inline |
デフォルトコンストラクタ
|
inline |
コンストラクタ
| [in] | mean | … 多変量正規乱数の平均ベクトル |
| [in] | covariance | … 多変量正規乱数の共分散行列 |
|
inline |
コンストラクタ
| [in] | seed | … g_rand_のseed(これを用いてジェネレータの状態を初期化する) |
| [in] | mean | … 多変量正規乱数の平均ベクトル |
| [in] | covariance | … 多変量正規乱数の共分散行列 |
|
inline |
コンストラクタ
| [in] | seed_array | … g_rand_のseed配列 |
| [in] | mean | … 多変量正規乱数の平均ベクトル |
| [in] | covariance | … 多変量正規乱数の共分散行列 |
|
inline |
指定された平均・標準偏差の正規乱数を生成
|
inline |
seedで初期化
initializes vec_[n_] with a seed
| [in] | seed | … g_rand_のseed(これを用いてseed配列を作る) |
|
inline |
指定された平均・標準偏差の正規乱数を生成
|
inline |
正規乱数のパラメータ指定
| [in] | mean | … 正規乱数の平均 |
| [in] | variance | … 正規乱数の分散 |
1.8.1.2