Home
last modified time | relevance | path

Searched refs:oldCenters (Results 1 – 1 of 1) sorted by relevance

/packages/apps/Gallery2/jni/filters/
Dkmeans.h123 inline int findClosest(T values[], T oldCenters[], int dimension, int stride, int pop_size) { in findClosest() argument
125 N best_len = euclideanDist <T, N>(values, oldCenters, dimension); in findClosest()
128 N l = euclideanDist <T, N>(values, oldCenters + y, dimension); in findClosest()
141 int calculateNewCentroids(int k, T values[], int len, int dimension, int stride, T oldCenters[], in calculateNewCentroids() argument
157 int best = findClosest<T, N>(values + x, oldCenters, dimension, stride, pop_size); in calculateNewCentroids()