Monte Carlo methods use random sampling to simulate processes of a probabilistic nature and to solve numerical problems approximately. An example application might be the simulation of fluctuations in the positions of detected photons suffering diffraction. These methods rely heavily upon pseudo-random numbers generated by nonlinear computer algorithms and distributed uniformly or normally over a range.
This script explores the generation of samples of a random variable described by an arbitrary probability density function (pdf) and may interest students and teachers of physics and engineering. 'Try this' suggestions are included.
引用格式
Duncan Carlsmith (2024). SampleArbitraryProbabilityDistributionExplorer (https://www.mathworks.com/matlabcentral/fileexchange/123350-samplearbitraryprobabilitydistributionexplorer), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2022b
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!