jaccardSimilarity: Jaccard similarity

View source: R/func.R

jaccardSimilarityR Documentation

Jaccard similarity

Description

Computes Jaccard similarity between "detections" in two vectors of the same length. A detection is a value, as opposed to NA.

Usage

jaccardSimilarity(x, y)

Arguments

x

A vector

y

A vector

Value

Jaccard similarity between x and y

Examples

library(proteusLabelFree)
data(proteusLabelFree)
sim <- jaccardSimilarity(pepdat$tab[,1], pepdat$tab[,2])


bartongroup/Proteus documentation built on April 22, 2023, 5:33 a.m.