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