search for: calculmean

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

Did you mean: calculan
2014 Mar 19
1
Memcheck: Invalid read of size 4
...(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,trajMean); affecteIndiv(traj,nbInd,nbTime,trajMean,nbClusters,clusterAffectation2); i = 0; while(clusterAffectation1[i]==clusterAffectation2[i] && i <*nbInd){i++;}; // lines 183 if(i == *nbInd){ *convergenceTime = iter +...