1. Zoltán Szabó
  2. ITE

Commits

Zoltan Szabo  committed 84583ca

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

  • Participants
  • Parent commits 3e697ee
  • Branches default

Comments (0)

Files changed (2)

File CHANGELOG.txt

View file
  • Ignore whitespace
+-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):

File code/H_I_D/utilities/kNN_squared_distances.m

View file
  • Ignore whitespace
         [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,...