vMeasure: vMeasure

View source: R/external_cluster_validity.R

vMeasureR Documentation

vMeasure

Description

Computes the V measure of a set of clusters given ground-truth classes, as defined in https://aclweb.org/anthology/D/D07/D07-1043.pdf

Usage

vMeasure(contingency, c, k)

Arguments

contingency

Table, contingency table between clusters and conditions as returned by the table function

c

Vector of classes

k

Vector of clusters

Value

Numeric

Examples


clusters <- c(0, 0, 2, 1, 1, 0, 1)
classes <- c("A", "A", "A", "B", "B", "A", "B")
ct <- table(classes, clusters)
vMeasure(contingency = ct)


sjessa/chromswitch documentation built on Feb. 4, 2024, 2:04 a.m.