
Relative Entropy Between Two Sample Ensembles (Gaussian approximation)
Source:R/relative-entropy.R
relative_entropy_ensemble.RdConvenience wrapper around relative_entropy() for ensemble inputs (for
example a PESTO posterior ensemble): each ensemble is summarised by its sample
mean and covariance and the Gaussian relative entropy is returned. This is a
moment-matched approximation – exact when the ensembles are Gaussian and a
second-order surrogate otherwise.