jaccard.ev: Compute an expected Jaccard/Tanimoto similarity coefficient...

Description Usage Arguments Value Examples

View source: R/jaccard.R

Description

Compute an expected Jaccard/Tanimoto similarity coefficient under independence

Usage

1
jaccard.ev(x, y, px = NULL, py = NULL)

Arguments

x

a binary vector (e.g., fingerprint)

y

a binary vector (e.g., fingerprint)

px

probability of successes in x (optional)

py

probability of successes in y (optional)

Value

jaccard.ev returns an expected value.

Examples

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

Example output

[1] 0.3179348

jaccard documentation built on May 2, 2019, 12:51 p.m.

Related to jaccard.ev in jaccard...