The Cuik KD-Tree Library
cuik-kdtree.h
Go to the documentation of this file.
void SampleInKDtree(double *point, TKDtree *kdt) Generates a random sample. Definition: cuik-kdtree.c:747 void AddPoint2KDtree(double *point, unsigned int id, TKDtree **kdt) Adds a point to a kd-tree. Definition: cuik-kdtree.c:582 unsigned int NearestNeighbour(double *point, TKDtree *kdt) Determines the nearest-neighbour for a point. Definition: cuik-kdtree.c:714 TKDtree * InitKDTree(Trectangle *ambient, unsigned int *topology, unsigned int m, double r, unsigned int n, double **points, unsigned int *ids) Initializes a kd-tree from a set of points. Definition: cuik-kdtree.c:544 Definition of the Trectangle type and the associated functions. Definition of constants and macros used in several parts of the library. void PrintKDtree(FILE *f, unsigned int indent, TKDtree *kdt) Prints a kd-tree. Definition: cuik-kdtree.c:769 void NeighboursInBall(double *point, double r, unsigned int *n, unsigned int **ids, TKDtree *kdt) Neighbours in a ball. Definition: cuik-kdtree.c:730 double KDtreeSamplingExpansion(TKDtree *kdt) Returns the sampling expansion used in the kd-tree. Definition: cuik-kdtree.c:764 |
Follow us!