octave-ann

octave-ann is a set of bindings that allow one to use the ANN library from within Octave.
Download

octave-ann Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Xavier Delacour
  • Publisher web site:

octave-ann Tags


octave-ann Description

octave-ann is a set of bindings that allow one to use the ANN library from within Octave. octave-ann is a set of bindings that allow one to use the ANN library from within Octave.ANN (A Library for Approximate Nearest Neighbor Searching) has some nice data structures and algorithms for computing exact/approx nearest neighbors on an arbitrarily high dimensional point set. Here are bindings that allow one to perform queries like the following from within Octave:octave:1> annoctave:2> pts=;octave:3> kd=ANNkd_tree(pts);octave:4> =kd.annkPriSearch(,5)nn_idx = 14 2 1 9 7dd = 0.015565 0.022991 0.070649 0.080629 0.231029Where nn_idx contains the row indices of the 5 (approx) nearest neighbors of the given query point ( in this case), and dd contains the distance of the given point to each of the returned neighbors. These are computed in at most O(k log(n)) where k is a small constant/parameter that varies with the quality of the approximation. There is no difficulty in dealing with hundreds of dimensions, no constraint on the number of points (other than available memory), and the data structure (kd, above), once constructed, may be used to perform many lookups.There are several different data structures, algorithms, and parameters available. See the ANN homepage for details. Also there are a number of tests in the bindings/tests/octave directory that can serve as examples. These should be particularly useful since SWIG/Octave doesn't yet provide a way to insert documentation into wrapper code.


octave-ann Related Software