X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=old_C_code%2Fstage1%2Fsrc%2Fmain.c;h=d1f796568480ce0414c6e59bb4f181dbd437f0bf;hb=3954ea3cea46a60ab7c09862f3167c672367adcf;hp=980077887e259a4e46b99c7d38c50d030084a10a;hpb=7709d507dfab9256a401f2c77ced7bc70d90fec3;p=epclust.git diff --git a/old_C_code/stage1/src/main.c b/old_C_code/stage1/src/main.c index 9800778..d1f7965 100644 --- a/old_C_code/stage1/src/main.c +++ b/old_C_code/stage1/src/main.c @@ -117,7 +117,7 @@ int cluster_main(int argc, char **argv) nbClusters = nbSeriesInChunk; double idealNbSeriesInChunk = 0.0; //unused if randomize == TRUE - if (!randomize) + if (!randomize) { // Adjust nbSeriesInChunk to avoid small remainders. // Each node should have at least nbSeriesInChunk (as given to the function). @@ -154,6 +154,7 @@ int cluster_main(int argc, char **argv) } //main classification task (using clustering result) +//NOTE: ifileName == courbes à classer (?!) int classif_main(int argc, char** argv) { const char* ifileName = argv[1]; @@ -221,6 +222,7 @@ int classif_main(int argc, char** argv) uint32_t smallestNonProcessedIndex = 0; double DISTOR = 0.0; + FILE* labelsFile = fopen("LABELS", "w"); while (smallestNonProcessedIndex < nbSeries) { uint32_t lowerBound = smallestNonProcessedIndex; @@ -230,23 +232,24 @@ int classif_main(int argc, char** argv) for (uint32_t i=0; i