Find associated cluster
po=inwichclust(X,centers)
matrix of real. Data points.
matrix of real. Cluster centers.
matrix of integers. Associated cluster of each point
inwichclust return the nearest cluster's center position of the pair of data X.
inwichclust
// Generate 10 points centered in (1,1) (2,2) and (5,5) X=[1+rand(10,2);2+rand(10,2);5+rand(10,2)]; centers=subclust(X); po=inwichclust(X,centers);