Logo Search packages:      
Sourcecode: octave-ann version File versions  Download package

kd_tree.m

ann

pts=;

querypts=

kd=ANNkd_tree(10,128)
kd=ANNkd_tree(pts)
assert(kd.theDim()==size(pts,2));
assert(kd.nPoints()==size(pts,1));

for i=1:size(querypts,1),
  [nn_idx,dd]=kd.annkSearch(querypts(i,:),5)
  [nn_idx,dd]=kd.annkPriSearch(querypts(i,:),5)
endfor

Generated by  Doxygen 1.6.0   Back to index