Description Usage Arguments Details Value
Ruzicka or weighted Jaccard distance
1 | ruzicka(x, y)
|
x, y |
Numeric vectors. |
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:
Equivalent to vegdist() with method = "jaccard".
Related to the Bray-Curtis distance, d_r = 2 d_{bc} / (1 + d_{bc}).
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.