0

I am currently computing the nearest neighbors ratio using pdist2 for two feature vectors, x and y. I am using pdist2 to get the distances and am then sorting the distances by column and computing column 1 / column2 for the nearest neighbors ratio. I thought it would be faster to use a k-d tree to do this. Is this possible using built in matlab function?

Mr.Roboto
  • 191
  • 3
  • 14

0 Answers0