Skip to content
Snippets Groups Projects
Commit 30eb44ed authored by Boris Stefanovic's avatar Boris Stefanovic
Browse files

last minute aesthetic cleanup

parent eca6498b
Branches headers
Tags
No related merge requests found
......@@ -37,7 +37,7 @@ cluster_int_t** kmeans_init_clusters_int(const vector_int_t** points, const size
while (!valid) {
// initialise center values randomly, within the "multidimensional rectangle" of our set of points
for (size_t p = 0; p < center->dim; ++p) {
center->data[p] = rand_int_range(min->data[p], max->data[p]); // TODO: create a rand_long_range(...) function
center->data[p] = rand_int_range((int) min->data[p], (int) max->data[p]);
}
// check center is not already in clusters, although probability is extremely low...
valid = !is_vector_in_centers_int(center, (const cluster_int_t**) clusters, i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment