What is the difference between mvnrnd and normrnd?
9 ビュー (過去 30 日間)
古いコメントを表示
I can not find out what is the difference between these two random number generator functions.
2 件のコメント
Rohit Jain
2015 年 5 月 15 日
mvnrnd() is the function used to generate pseudo random numbers that follow multi variate normal distribution. mvnrnd() is more for creating correlated random variables normrnd() is the function used to generate pseudo random numbers that follow normal distribution. normrnd() is generally faster than mvnrnd(). For more information on mvnrnd() and normrnd() follow the documentation http://www.mathworks.com/help/stats/mvnrnd.html
Adnane123
2015 年 9 月 16 日
編集済み: Adnane123
2015 年 9 月 16 日
Another difference to emphasize here is that if you want to use mvnrnd() for the univariate case you should use the variance directly. For normrnd(), you need to use the standard deviation. Thus, the input for each function should look like: mvnrnd(mean,var) Vs normrnd(mean,sd)
採用された回答
Rohit Jain
2015 年 5 月 15 日
mvnrnd() is the function used to generate pseudo random numbers that follow multi variate normal distribution. mvnrnd() is more for creating correlated random variables normrnd() is the function used to generate pseudo random numbers that follow normal distribution. normrnd() is generally faster than mvnrnd(). For more information on mvnrnd() and normrnd() follow the documentation http://www.mathworks.com/help/stats/mvnrnd.html
0 件のコメント
その他の回答 (1 件)
Adnane123
2015 年 9 月 18 日
Another difference to emphasize here is that if you want to use mvnrnd() for the univariate case you should use the variance directly. For normrnd(), you need to use the standard deviation. Thus, the input for each function should look like: mvnrnd(mean,var) Vs normrnd(mean,sd)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Random Number Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!