
Compute the effective sample size (ESS) of the particles.
Source:R/RcppExports.R
effectiveSampleSize.RdThe ESS is a "rule of thumb" for assessing the degeneracy of the importance distribution: $$ESS = \frac{(\sum_{q=1}^Q w_q)^2}{\sum_{q=1}^Q w_q^2}$$