jaccard {jaccard}R Documentation

Compute a Jaccard/Tanimoto similarity coefficient

Description

Compute a Jaccard/Tanimoto similarity coefficient

Usage

jaccard(x, y, center = FALSE, px = NULL, py = NULL)

Arguments

x

a binary vector (e.g., fingerprint)

y

a binary vector (e.g., fingerprint)

center

whether to center the Jaccard/Tanimoto coefficient by its expectation

px

probability of successes in x (optional)

py

probability of successes in y (optional)

Value

jaccard returns a Jaccard/Tanimoto coefficient.

Examples

set.seed(1234)
x = rbinom(100,1,.5)
y = rbinom(100,1,.5)
jaccard(x,y)

[Package jaccard version 0.1.0 Index]