📄 particle_resampling.c
字号:
/* particle_resampling.c
usage: index = particle_resampling(pdf)
-----
Inputs
------
pdf Empirical probability density function (vector (1 x N) or (1 x N))
Ouputs
-------
index Index of particle redisdribution (1 x N)
Example
-------
N = 500;
pdf = rand(1 , N);
pdf = pdf/sum(pdf);
index = particle_resampling(pdf);
To compile
-----------
mex -DranSHR3 -f mexopts_intel10amd.bat -output particle_resampling particle_resampling.c
Author : S閎astien PARIS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -