SSP_Resampler | R Documentation |
This function implements the SSP resampling algorithm \insertCitegerber2019negativePFoptim.
SSP_Resampler(U,W)
W |
A vector of normalized weights. |
U |
A vector of points in (0,1) such that |
For efficiency reasons, SSP_Resampler
does not perform checks on the supplied arguments.
A vector of length N with elements in the set \{1,...,N\}, with N=length(U)=length(W)
.
N<-100 W<-rbeta(N,0.5,2) W<-W/sum(W) J<-SSP_Resampler(runif(N),W)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.