search for: trajmean

Displaying 1 result from an estimated 1 matches for "trajmean".

2014 Mar 19
1
Memcheck: Invalid read of size 4
...1, 183 and 198) --- 8< ---------------- void kml1(double *traj, int *nbInd, int *nbTime, int *nbClusters, int *maxIt, int *clusterAffectation1, int *convergenceTime){ int i=0,iter=0; int *clusterAffectation2=malloc(*nbInd * sizeof(int)); // lines 151 double *trajMean=malloc(*nbClusters * *nbTime * sizeof(double)); for(i = 0; i < *nbClusters * *nbTime; i++){trajMean[i] = 0.0;}; for(i = 0; i < *nbInd; i++){clusterAffectation2[i] = 0;}; for(iter = 0; iter < *maxIt; iter+=2){ calculMean(traj,nbInd,nbTime,clusterAffectation1,nbClusters,tra...