The function will return the set of labels of a data set
nearestCentroid(dataset,
clustermean=NULL,
clustercov=NULL,
p.threshold=1.0e-6)
The labels of each point
The data set to be labeled
The list of cluster centers.
The list of cluster covariances
The minimum aceptance p.value
Jose G. Tamez-Pena
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.