Searched refs:centroids (Results 1 - 1 of 1) sorted by relevance

/packages/apps/Gallery2/jni/filters/
H A Dkmeans.h138 * Calculates new centroids by averaging value clusters for old centroids.
206 * Runs the k-means algorithm on dataset values with some initial centroids.
223 void applyCentroids(int k, T centroids[], T values[], int len, int dimension, int stride) { argument
227 int best = findClosest<T, N>(values + x, centroids, dimension, stride, pop_size);
228 set<T, T>(values + x, centroids + best, dimension);

Completed in 85 milliseconds