L2 distance between L2-normed probability densities
L2 distance between L2-normed probability densities
L2 distance between two multivariate (p>1) or univariate (dimension: p=1) L2-normed probability densities, estimated from samples, where a L2-normed probability density is the original probability density function divided by its L2-norm.
x1, x2: the samples from the probability densities (see l2d.
method: string. It can be:
"gaussiand" if the densities are considered to be Gaussian.
"kern" if they are estimated using the Gaussian kernel method.
check: logical. When TRUE (the default is FALSE) the function checks if the covariance matrices (if method = "gaussiand") or smoothing bandwidth matrices (if method = "kern") are not degenerate, before computing the inner product.
Notice that if p=1, it checks if the variances or smoothing parameters are not zero.
varw1, varw2: the bandwidths when the densities are estimated by the kernel method (see l2d.
Details
Given densities f1 and f2, the function distl2dnormpar computes the distance between the L2-normed densities f1/∣∣f1∣∣ and f2/∣∣f2∣∣:
2−2<f1,f2>/(∣∣f1∣∣∣∣f2∣∣)
For some information about the method used to compute the L2 inner product or about the arguments, see l2d.
Returns
The L2 distance between the two L2-normed densities.
Be careful! If check = FALSE and one smoothing bandwidth matrix is degenerate, the result returned can not be considered.
Author(s)
Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard
See Also
distl2d for the distance between two probability densities.
matdistl2dnorm in order to compute pairwise distances between several L2-normed densities.