Learn R Programming

OTclust (version 1.0.6)

jaccard: Jaccard similarity matrix.

Description

This function calculates Jaccard similarity matrix between two partitions.

Usage

jaccard(x, y)

Value

a matrix of Jaccard similarity between clusters in two partitions.

Arguments

x, y

-- vectors of cluster labels

Examples

Run this code
x=c(1,2,3)
y=c(3,2,1)
jaccard(x,y)

Run the code above in your browser using DataLab