| TSTOOL home page | TSTOOL documentation page | TSTOOL link page |
nn_prepare does the preprocessing for a given data set pointset. The returned data structure atria contains preprocessing information that is necessary to use nn_search or range_search.
Preprocessing and searching is divided into different mex-files to give the user the possibility to re-use the preprocessing data (contained in atria) when doing multiple searches on the same point set. However, as soon as the underlying point set is changed or modified, one has to recompute atria for the changed point set.
atria = nn_prepare(pointset)
atria = nn_prepare(pointset, metric)
atria = nn_prepare(pointset, metric, clustersize)