tanimotoCoef: Tanimoto coefficients

View source: R/tanimotoCoef.R

tanimotoCoefR Documentation

Tanimoto coefficients

Description

Calculates Tanimoto coefficients (Jaccard Index) given two set vectors.

Usage

tanimotoCoef(A, B, T = NULL)

Arguments

A

set input1 as vectors

B

set input2 as vectors

T

background space (if given, A and B are intersected with T before calculating, causing the function to run slower)

Examples

A <- c(1:5)
B <- c(3:7)
tanimotoCoef(A, B)

LittleHeronCodes/Lazy2 documentation built on Jan. 26, 2024, 2:01 p.m.