diff --git a/serialDeclarations.c b/serialDeclarations.c index 5c1b67a..a040ad5 100644 --- a/serialDeclarations.c +++ b/serialDeclarations.c @@ -25,22 +25,19 @@ void meanshift(double **x, int h, struct parameters *opt){ int iter = 0; // printf("%f \n", opt->epsilom); - // TODO ITERATION + /** iterate until convergence **/ // printf("norm : %f \n", norm(m, ROWS, COLUMNS)); while (norm(m, ROWS, COLUMNS) > opt->epsilom) { -// while (iter < 1){ iter = iter +1; // find pairwise distance matrix (inside radius) - // TODO write in C /** allocate memory for inside iteration arrays **/ double ** W = alloc_2d_double(ROWS, ROWS); double * l = malloc(ROWS * sizeof(double)); // [I, D] = rangesearch(x,y,h); for (int i=0; i