필터 지우기
필터 지우기

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 CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by