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)