I just got Octave Forge the other day, and am trying to run my MATLAB code. There's a line in my code that's giving me this error
warning: the 'knnsearch' function belongs to the statistics package from
Octave Forge but has not yet been implemented.
Please read <http://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
I've gone to the website and the knnsearch is missing, and I would have absolutely no idea how to implement it. My MATLAB code is as follows
[IDX,D] = knnsearch(histaxis,histaxis,'K',k);
where histaxis is a 7787x2 list of the positions of events and I choose k anywhere between 2 and 10000. The value I'm really interested in here is the distance to the kth nearest neighbour, D(:,k), the other information this gives is superfluous.
Is there another way to get this information that is available through Octave?
Thanks for your help :)