Computes data point distances to centroids and returns centroid assignment predictions.
output vector for storing centroid assignment predictions
matrix containing data points (n x d
, where n
is the number of data points and d
is the number of dimensions)
vector containing centroid (index) predictions or null
Computes data point distances to centroids and returns centroid assignment predictions.
matrix containing data points (n x d
, where n
is the number of data points and d
is the number of dimensions)
vector containing centroid (index) predictions or null
Accumulator interface.