Restricted sampling from Gaussian Distribution

版本 1.0.0.0 (2.5 KB) 作者: Kanchi
Sample x from N(x_mu, x_var), restricted in x_min<=x<=x_max.
3.1K 次下载
更新时间 2004/12/6

无许可证

MATLAB implementation of restricted sampling from Gaussian distribution

Objective: sample x (column vector) from N(x_mu, x_var), restricted in
x_min<=x<=x_max.

input: x_mu, x_var: the parameter of the pdf of x
x_min, x_max: the range of x

output: x: the sample

Acknowledge
Peter J. Acklam's toolbox for the inverse normal cumulative distribution function
http://home.online.no/~pjacklam/notes/invnorm/index.html

Jing Tian
Contact me : scuteejtian@hotmail.com
This program is written in Oct.2004 during my postgraduate studying in
NTU, Singapore.

引用格式

Kanchi (2024). Restricted sampling from Gaussian Distribution (https://www.mathworks.com/matlabcentral/fileexchange/6447-restricted-sampling-from-gaussian-distribution), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0