Skip to contents

(sum w)^2 / sum w^2: how many particles are really contributing.

Usage

effective_sample_size(weights)

Arguments

weights

Numeric vector of positive weights.

Value

Numeric scalar.