ruzicka: Ruzicka or weighted Jaccard distance

Description Usage Arguments Details Value

Description

Ruzicka or weighted Jaccard distance

Usage

1
ruzicka(x, y)

Arguments

x, y

Numeric vectors.

Details

For vectors x and y, the Ruzicka distance is defined as

d(x, y) = 1 - \frac{∑_i \min(x, y)}{∑_i \max(x, y)}.

Relation to other definitions:

Value

The Ruzicka distance between x and y. The distance is not defined if all elements in x and y are zero, and we return NaN in this case.


abdiv documentation built on Jan. 20, 2020, 5:07 p.m.