Commits

Zoltan Szabo committed 84583ca

kNN_squared_distances.m, co.kNNmethod='knnFP2': for compatibility reasons variable 'indices' has been converted to int32.

Comments (0)

Files changed (2)

+-kNN_squared_distances.m, co.kNNmethod='knnFP2': for compatibility reasons variable 'indices' has been converted to int32
 -accents: deleted from comments.
 
 v0.13 (Oct 27, 2012):

code/H_I_D/utilities/kNN_squared_distances.m

         [S,I] = sort(sq);
         if Y_equals_to_Q %'Y==Q' => exclude the points themselves
             squared_distances = S([1:max(co.k)]+1,:);
-            indices = I([1:max(co.k)]+1,:);
+            indices = int32(I([1:max(co.k)]+1,:));
         else
             squared_distances = S(1:max(co.k),:);
-            indices = I(1:max(co.k),:);
+            indices = int32(I(1:max(co.k),:));
         end
     case 'knnsearch' %Statistics Toolbox:Matlab
         [indices,distances] = knnsearch(Y.',Q.','K',max(co.k),'NSMethod',co.NSmethod); %[double,...