KLdiv.fused {rags2ridges} | R Documentation |
Fused Kullback-Leibler divergence for sets of distributions
Description
Function calculating the Kullback-Leibler divergence between two sets of multivariate normal distributions. In other words, it calculates a weigthed mean of Kullback-Leibler divergences between multiple paired normal distributions.
Usage
KLdiv.fused(MtestList, MrefList, StestList, SrefList, ns, symmetric = FALSE)
Arguments
MtestList |
A |
MrefList |
A |
StestList |
A |
SrefList |
A |
ns |
a |
symmetric |
a |
Value
Function returns a numeric
representing the (optionally
symmetric) fused Kullback-Leibler divergence.
Author(s)
Anders Ellern Bilgrau, Wessel N. van Wieringen, Carel F.W. Peeters <carel.peeters@wur.nl>
See Also
Examples
# Create some toy data
n <- c(40, 60, 80)
p <- 10
Stest <- replicate(length(n), diag(p), simplify = FALSE)
Sref <- createS(n, p = p)
KLdiv.fused(StestList = Stest, SrefList = Sref, ns = n, symmetric = FALSE)
KLdiv.fused(StestList = Stest, SrefList = Sref, ns = n, symmetric = TRUE)