Commits

Zoltan Szabo committed 0a3d2e6

compute_CDSS.cpp: 'sqrt(T)' -> 'sqrt(double(T))', to increase compatibility with compilers.

  • Participants
  • Parent commits 0fca81f

Comments (0)

Files changed (2)

+-compute_CDSS.cpp: 'sqrt(T)' -> 'sqrt(double(T))', to increase compatibility with compilers.
 -Note on Jensen-Shannon divergence: deleted (doc).
 
 v0.18 (Nov 10, 2012):

code/H_I_D/utilities/compute_CDSS.cpp

     
     mwSize i,j,m;
     
-    m = floor(sqrt(T));
+    m = floor(sqrt(double(T)));
     *H = 0;
     for (i=1; i<T-m+1; i++) {   /* i: in Matlab sense*/
     for (j=i+1; j<i+m-1+1; j++) {   /* j: in Matlab sense*/