xx_Jaccard: Jaccard Index

Description Usage Arguments Details Value Author(s) References Examples

Description

This function returns the Jaccard index for binary ids.

Usage

1

Arguments

x

true binary ids, 0 or 1.

y

predicted binary ids, 0 or 1.

Details

All ids, x and y, should be either 0 (not active) or 1 (active). Any value other than 1 will be converted to 0.

Value

Return the value of Jaccard index.

Author(s)

Wei-Chen Chen [email protected] and Ranjan Maitra.

References

http://maitra.public.iastate.edu/

Examples

1
2
3
4
5
6
library(EMCluster, quietly = TRUE)

x.id <- c(1, 1, 1, 0, 0, 0, 3, 3, 3)
y.id <- c(0, 1, 0, 1, 1, 1, 0, 1, 1)

Jaccard.Index(x.id, y.id)

EMCluster documentation built on Aug. 26, 2017, 9:04 a.m.