
Resample in place to avoid expensive copying of data structures, using a permutation of the ancestry vector.
Source:R/RcppExports.R
resampleParticles.RdResample in place to avoid expensive copying of data structures, using a permutation of the ancestry vector.
Arguments
- log_weights
logarithms of the importance weights of each particle
- ampMx
npeaks x npartMatrix of amplitudes for each particle.- scaleMx
npeaks x npartMatrix of scale parameters for each particle.- peaks
nwl x npartMatrix containing the expectation of the Lorentzian mixture.- baselines
nwl x n_y x npartArray of smoothing splines.- n_y
number of observations
- nwl
number of wavenumbers
References
Murray, L.M., Lee, A. & Jacob, P.E. (2015) "Parallel resampling in the particle filter" arXiv:1301.4019v3