InverseTransformSampling:一维和二维逆变换采样的Matlab实现

时间:2021-07-01 09:38:48
【文件属性】:
文件名称:InverseTransformSampling:一维和二维逆变换采样的Matlab实现
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-01 09:38:48
MATLAB 逆变换采样 1D 和 2D 中逆变换采样的 Matlab 实现。 这需要 chebfun2 5.0(或更高版本): http://www.chebfun.org/download/ ======================== 一维用法 sample(pdf, [a b], N); 二维用法 sample(pdf, [a b], [c d], N); ======================== 一维示例 X = sample(@(x) exp(-x.^2), [-10 10], 100); X = sample(@(x) exp(-x.^2/2).*(1 + (sin(3*x)).^2).*(1 + (cos(5*x).^2)), [-8 8], 100); X = sample(@(x) exp(-4.*x.^2).*(9+72.*x.^2 - 192.*x.^
【文件预览】:
InverseTransformSampling-master
----sample.m(4KB)
----sample_2D.m(5KB)
----README.md(945B)
----test.m(1KB)

网友评论