cr.sparse.cluster.vq.find_nearest

cr.sparse.cluster.vq.find_nearest(point, centroids)[source]

Returns the index of the nearest centroid for a specific point

Parameters
Returns

The index of the nearest centroid

Return type

(int)