esov: The ESOV-distance

View source: R/esov.R

The ESOV-distanceR Documentation

The ESOV-distance

Description

The ESOV-distance.

Usage

esov(x)
esova(xnew, x)
es(x1, x2)

Arguments

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.

Details

The ESOV distance is calculated.

Value

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.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

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.

See Also

alfadist, comp.knn, js.compreg

Examples

library(MASS)
x <- as.matrix(fgl[1:20, 2:9])
x <- x / rowSums(x)
esov(x)

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.