jaccard: Jaccard similarity matrix.

View source: R/jaccard.R

jaccardR Documentation

Jaccard similarity matrix.

Description

This function calculates Jaccard similarity matrix between two partitions.

Usage

jaccard(x, y)

Arguments

x, y

– vectors of cluster labels

Value

a matrix of Jaccard similarity between clusters in two partitions.

Examples

x=c(1,2,3)
y=c(3,2,1)
jaccard(x,y)

OTclust documentation built on Oct. 6, 2023, 5:09 p.m.