
Last chance! 50% off unlimited learning
Sale ends in
Last chance! 50% off unlimited learning
Sale ends in
The function will return the set of labels of a data set
nearestCentroid(dataset,
clustermean=NULL,
clustercov=NULL,
p.threshold=1.0e-6)
The data set to be labeled
The list of cluster centers.
The list of cluster covariances
The minimum aceptance p.value
The labels of each point
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.