powered by
renormalize(weights, log=FALSE, engine="R")
resampling
ws = runif(10) renormalize(ws) log.ws = dnorm(rnorm(10,1,0),log=TRUE) renormalize(log.ws,log=TRUE)
Run the code above in your browser using DataLab