The ESOV-distance
The ESOV-distance.
esov(x) esova(xnew, x) es(x1, x2)
x |
A matrix with compositional data. |
xnew |
A matrix or a vector with new compositional data. |
x1 |
A vector with compositional data. |
x2 |
A vector with compositional data. |
The ESOV distance is calculated.
For "esov" a matrix including the pairwise distances of all observations or the distances between xnew and x. For "esova" a matrix including the pairwise distances of all observations or the distances between xnew and x. For "es" a number, the ESOV distance between x1 and x2.
Michail Tsagris
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Tsagris, Michail (2014). The k-NN algorithm for compositional data: a revised approach with and without zero values present. Journal of Data Science, 12(3): 519-534.
Endres, D. M. and Schindelin, J. E. (2003). A new metric for probability distributions. Information Theory, IEEE Transactions on 49, 1858-1860.
Osterreicher, F. and Vajda, I. (2003). A new class of metric divergences on probability spaces and its applicability in statistics. Annals of the Institute of Statistical Mathematics 55, 639-653.
library(MASS) x <- as.matrix(fgl[1:20, 2:9]) x <- x / rowSums(x) esov(x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.