R/es.R

Defines functions es

Documented in es

## computes the ESOV distance between two vectors, x1 and x2
es <- function(x1, x2)  sum( x1 * log( 2 * x1 / (x1 + x2) ) + x2 * log( 2 * x2 / (x1 + x2) ), na.rm = TRUE )

Try the Compositional package in your browser

Any scripts or data that you put into this service are public.

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