powered by
Computes the effective sample size (ESS) of importance sampling estimator.
ess(w, f, x)
An effective sample size estimate.
A numeric vector of non-negative weights.
A function used in computing f-specific ESS.
f
A numeric vector of samples used to generate w. Used for computing f(x).
w
f(x)