sampling from a distribution.
Ältere Kommentare anzeigen
I want to get random samples from a mixture distribution for monte carlo approach. What are some matlab function that can be used?
Antworten (1)
Image Analyst
am 12 Jul. 2013
0 Stimmen
I don't know what distributions you want, but you might try the rand() function. Or if you want a specific distribution, you might try RANDRAW: http://www.mathworks.com/matlabcentral/fileexchange/7309-randraw which has about 50 of them.
2 Kommentare
sepideh
am 13 Jul. 2013
Image Analyst
am 13 Jul. 2013
In general you need to construct the CDF of your PDF and then put in a random number to get your random draw. See this for more info: http://en.wikipedia.org/wiki/Inverse_transform_sampling
Kategorien
Mehr zu Gaussian Mixture Models finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!