View source: R/matjeffreyspar.R
matjeffreyspar | R Documentation |
Computes the matrix of Jeffreys measures between several multivariate (p > 1
) or univariate (p = 1
) Gaussian densities, given their parameters (mean vectors and covariance matrices if the densities are multivariate, or means and variances if univariate), using jeffreyspar
.
matjeffreyspar(meanL, varL)
meanL |
list of the means ( |
varL |
list of the variances ( |
Positive symmetric matrix whose order is equal to the number of densities, consisting of pairwise Jeffreys measures between the Gaussian densities.
Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard
jeffreyspar
.
matjeffreys
for the matrix of Jeffreys divergences between probability densities which are estimated from the data.
data(roses)
# Multivariate:
X <- roses[,c("Sha","Den","Sym","rose")]
summary(X)
mean.X <- as.list(by(X[, 1:3], X$rose, colMeans))
var.X <- as.list(by(X[, 1:3], X$rose, var))
matjeffreyspar(mean.X, var.X)
# Univariate :
X1 <- roses[,c("Sha","rose")]
summary(X1)
mean.X1 <- by(X1$Sha, X1$rose, mean)
var.X1 <- by(X1$Sha, X1$rose, var)
matjeffreyspar(mean.X1, var.X1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.