jaccard: Compute a Jaccard/Tanimoto similarity coefficient

Description Usage Arguments Value Examples

View source: R/jaccard.R

Description

Compute a Jaccard/Tanimoto similarity coefficient

Usage

1
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.test.bootstrap returns an expected value.

Examples

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

ncchung/jaccard documentation built on Dec. 31, 2019, 8:20 p.m.