# resample_reduce

function resample_reduce(w:Real[_]) -> (Real, Real)

Compute the effective sample size (ESS) and logarithm of the average weight, given a log-weight vector.

Returns: A pair, the first element of which gives the ESS, the second element of which gives the logarithm of the sum of weights.