DBIndex: Davis-Bouldin-Index

Description Usage Arguments Details Value Author(s) Examples

View source: R/DBIndex.R

Description

Computes the Davis-Bouldin-Index for cluster validation purposes.

Usage

1

Arguments

data

N x D matrix (N samples, D features)

labels

a vector of class labels

Details

To compute a clusters' compactness, this version uses the Euclidean distance to determine the mean distances between the samples and the cluster centers. Furthermore, the distance of two clusters is given by the distance of their centers.

Value

'DBIndex' returns the Davis-Bouldin cluster index, a numeric value.

Author(s)

Christoph Bartenhagen

Examples

1
2
3
## DB-Index of a 50 dimensional dataset with 20 samples separated into two classes
d = generateData(samples=20, genes=50, diffgenes=10, blocksize=5)
DBIndex (data=d[[1]], labels=d[[2]])

RDRToolbox documentation built on Nov. 8, 2020, 11:10 p.m.