Learn R Programming

FRESA.CAD (version 3.4.7)

nearestCentroid: Class Label Based on the Minimum Mahalanobis Distance

Description

The function will return the set of labels of a data set

Usage

nearestCentroid(dataset,
                  clustermean=NULL,
                  clustercov=NULL, 
                  p.threshold=1.0e-6)

Value

ClusterLabels

The labels of each point

Arguments

dataset

The data set to be labeled

clustermean

The list of cluster centers.

clustercov

The list of cluster covariances

p.threshold

The minimum aceptance p.value

Author

Jose G. Tamez-Pena

Details

The data set will be labeled based on the nearest cluster label. Points distance with membership probability lower than the acceptance threshold will have the "0" label.