distl2dnormpar {dad} | R Documentation |
distance between
-normed Gaussian densities given their parameters
Description
distance between two multivariate (
) or univariate (dimension:
)
-normed Gaussian densities, given their parameters (mean vectors and covariance matrices if the densities are multivariate, or means and variances if univariate) where a
-normed probability density is the original probability density function divided by its
-norm.
Usage
distl2dnormpar(mean1, var1, mean2, var2, check = FALSE)
Arguments
mean1 , mean2 |
means of the probability densities. |
var1 , var2 |
variances ( |
check |
logical. When If the variables are univariate, it checks if the variances are not zero. |
Details
Given densities and
, the function
distl2dnormpar
computes the distance between the -normed densities
and
:
.
For some information about the method used to compute the inner product or about the arguments, see
l2dpar
; the norm of the multivariate Gaussian density
is equal to
.
Value
The distance between the two
-normed Gaussian densities.
Be careful! If check = FALSE
and one variance matrix is degenerated (or one variance is zero if the densities are univariate), the result returned must not be considered.
Author(s)
Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard
See Also
distl2dpar
for the distance between two probability densities.
matdistl2d
in order to compute pairwise distances between several densities.
Examples
u1 <- c(1,1,1);
v1 <- matrix(c(4,0,0,0,16,0,0,0,25),ncol = 3);
u2 <- c(0,1,0);
v2 <- matrix(c(1,0,0,0,1,0,0,0,1),ncol = 3);
distl2dnormpar(u1,v1,u2,v2)