cr.sparse.cluster.vq.find_nearest_jit

cr.sparse.cluster.vq.find_nearest_jit(point, centroids)

Returns the index of the nearest centroid for a specific point

Parameters
Returns

The index of the nearest centroid

Return type

(int)