From 5add413de515260136a4a908c20e44d45012df5a Mon Sep 17 00:00:00 2001 From: anapt Date: Sat, 20 Jan 2018 16:38:10 +0200 Subject: [PATCH] clean up TODOs --- serialDeclarations.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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