Skip to contents

Compute the Xie-Beni cluster validity index from data, a membership matrix, and cluster centers.

Usage

compute_xb(x, u, v, m = 2)

Arguments

x

A numeric matrix of dimension \(n \times d\), where \(n\) is the number of observations and \(d\) is the number of features.

u

A numeric matrix of dimension \(n \times k\), where \(n\) is the number of observations and \(k\) is the number of clusters. Each row should represent a membership vector.

v

A numeric matrix of dimension \(k \times d\), where \(k\) is the number of clusters and \(d\) is the number of features. Each row should represent a cluster center.

m

A numeric value greater than 1 specifying the fuzziness parameter.

Value

A numeric value representing the XB index.