Skip to contents

Computes the Jaccard distance between two binary vectors.

Usage

distance_jaccard_cpp(x, y)

Arguments

x

(required, numeric vector).

y

(required, numeric vector) of same length as x.

Value

numeric

Examples

distance_jaccard_cpp(x = c(0, 1, 0, 1), y = c(1, 1, 0, 0))
#> [1] 0.6666667