// long end = 0;
// long cost = 0;
// start = System.currentTimeMillis();
for (int j = 0; j < values.size(); j++) {
// start = System.currentTimeMillis();
Clusterable val = values.get(j);
// end = System.currentTimeMillis();
// start = System.currentTimeMillis();
Clusterable nearestCluster = null;
float minDistance = Float.MAX_VALUE;
for (int i = 0; i < clusters.length; i++) {
Clusterable cluster = clusters[i];
float distance = ClusterUtils.getEuclideanDistance(val, cluster);
if (distance < minDistance) {
nearestCluster = cluster;
minDistance = distance;