フィルターのクリア

Generating random number for the Inverse Gaussian distribution

9 ビュー (過去 30 日間)
Abas Arkawazi
Abas Arkawazi 2019 年 11 月 22 日
コメント済み: Abas Arkawazi 2019 年 11 月 23 日
what is the code for generating random number for the inverse Gaussian distribution?
Please post here if anyone known of a good method of doing this.

採用された回答

the cyclist
the cyclist 2019 年 11 月 22 日
編集済み: the cyclist 2019 年 11 月 22 日
If you have the Statistics and Machine Learning Toolbox, then you can generate N random numbers with
N = 1000; % Set this to the number of values you want
mu = 1; % Set the scale parameter
lambda = 1; % Set the shape parameter
r = random('InverseGaussian',mu,lambda,N,1);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by