Renyi-2 or Shannon entropy of a conditional Gaussian mixture
Source:R/entropy.R
gmm_conditional_entropy.RdReturns the order-2 Renyi entropy (the default) or the Shannon differential
entropy of the conditional mixture \(g_{Y \mid X = x}\) obtained from
gmm_conditionalise() – the predictive uncertainty of the target
coordinates given the conditioned ones. The Renyi-2 entropy is closed-form;
order = "shannon" is a Monte Carlo estimate. Multiple
conditioning configurations are evaluated row-by-row.
Usage
gmm_conditional_entropy(
g,
given,
order = c("renyi2", "shannon"),
n_mc = 5000L,
seed = NULL
)Arguments
- g
- given
Either a numeric vector with one entry per coordinate, or a matrix whose rows are such vectors.
NAmarks a target (kept) coordinate; a numeric value conditions on that coordinate (thegmm_conditionalise()convention).- order
"renyi2"(closed-form, the default) or"shannon".- n_mc, seed
Passed to
gmm_entropy()fororder = "shannon".
Value
The entropy of the chosen order in nats: a numeric scalar for a
single configuration, or a numeric vector with one entropy per row of
given.