Displaying 1 result from an estimated 1 matches for "mclusterscenter".
2009 Feb 08
2
Strange behavior of C compiled program
Hi the list,
I need to include some C code in R, but the behavior of the C code is
strange : Here is my code :
--- 8< ---
Rprintf("\n XXXX mTraj=%f
mClus=%f",mTraj[i+nbId*c],mClustersCenter[j+nbClusters*c]);
Rprintf("\nDistA=%d Tmp=%d",dist,tmp);
tmp = mTraj[i+nbId* c] - mClustersCenter [j+nbClusters* c];
Rprintf("\nDistB=%d Tmp=%d",dist,tmp);
dist += (tmp * tmp);
Rprintf("\nDistC=%d Tmp=%d",dist,tmp);
--- 8< ----...