bilby.core.utils.samples.kish_log_effective_sample_size

bilby.core.utils.samples.kish_log_effective_sample_size(ln_weights)[source]

Calculate the Kish effective sample size from the natural-log weights

See https://en.wikipedia.org/wiki/Effective_sample_size for details

Parameters:
ln_weights: array

An array of the ln-weights

Returns:
ln_n_eff:

The natural-log of the effective sample size