X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=old_C_code%2Fstage1%2Fsrc%2Fmain.c;fp=code%2Fstage1%2Fsrc%2Fmain.c;h=980077887e259a4e46b99c7d38c50d030084a10a;hb=7709d507dfab9256a401f2c77ced7bc70d90fec3;hp=992b97c62282a9468d23b3ee48fa99fbc913809e;hpb=38aef1cbef037257bf03dd1e65fbb682a32e3f2c;p=epclust.git diff --git a/code/stage1/src/main.c b/old_C_code/stage1/src/main.c similarity index 99% rename from code/stage1/src/main.c rename to old_C_code/stage1/src/main.c index 992b97c..9800778 100644 --- a/code/stage1/src/main.c +++ b/old_C_code/stage1/src/main.c @@ -210,15 +210,15 @@ int classif_main(int argc, char** argv) if (tsLength1 > tsLength2) tsLength1 = tsLength2; } - uint32_t nbValues = (tsLength1 - 4) / 3; - + uint32_t nbValues = (tsLength1 - 4) / 4; + // 2] Classify all series by batches of CURVES_PER_REQUEST uint32_t nbSeries = get_nbSeries(ifileName); PowerCurve* medoids = deserialize(binFileName, NULL, ranks, nbClusters); free(binFileName); free(ranks); ranks = (uint32_t*)malloc(CURVES_PER_REQUEST*sizeof(uint32_t)); - + uint32_t smallestNonProcessedIndex = 0; double DISTOR = 0.0; while (smallestNonProcessedIndex < nbSeries)