Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


FRESA.CAD (version 3.3.0)

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)

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

Value

ClusterLabels

The labels of each point

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.