jaccard {OTclust}R 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)

[Package OTclust version 1.0.6 Index]