The Cuik KD-Tree Library
test-cuik-kdtree.c File ReferenceTest program for the cuik-kdtree library. More... #include "cuik-kdtree.h" #include "random.h" #include "definitions.h" #include "vector.h" #include <stdio.h> #include <time.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <sys/resource.h> #include <DNN/ANN_C.h>
Include dependency graph for test-cuik-kdtree.c:
Go to the source code of this file.
Detailed DescriptionTest program for the cuik-kdtree library. We evaluate the correctness and the peformance of the kd-tree search and compare it with alternative approaches. Definition in file test-cuik-kdtree.c. Define Documentation
If set to 1, the random points are generated on a k-dimensional sphere. Otherwise, the points are generated with uniform distribution in the [-1,1] range. This is used to simulate the search of nearest-neighbours on a manifold Definition at line 33 of file test-cuik-kdtree.c.
Number of points used by default. Definition at line 40 of file test-cuik-kdtree.c. Referenced by main().
Dimension of the points used by default. Definition at line 47 of file test-cuik-kdtree.c. Referenced by main().
Topology of the points used by default. Definition at line 54 of file test-cuik-kdtree.c. Referenced by main().
Maximum number of points in a leaf. Definition at line 61 of file test-cuik-kdtree.c. Referenced by main().
Expansion of the area covered by the kd-tree used for sampling. Currently not used. Definition at line 70 of file test-cuik-kdtree.c. Referenced by main().
Number of queries used when evaluating the efficiency of the methods. Definition at line 85 of file test-cuik-kdtree.c. Referenced by main().
Number of command line options available to the test program. Definition at line 93 of file test-cuik-kdtree.c. Referenced by main(). Function Documentation
Compares two unsigned integres. Used for the (quick)sort of the resuts of the proximity queries.
Definition at line 121 of file test-cuik-kdtree.c. Referenced by main().
Here is the caller graph for this function:
Gets the time in miliseconds used by the program so far.
Definition at line 126 of file test-cuik-kdtree.c. Referenced by main().
Here is the caller graph for this function:
Main body of the test program for the cuik-kdtree library. Use:
or
to get a help message about the possible commands for this test application.
Definition at line 159 of file test-cuik-kdtree.c. References AddPoint2KDtree(), CmpUInt(), DeleteKDtree(), DeleteRectangle(), DIM, FALSE, getTime(), INF, InitKDTree(), InitRectangle(), M_PI, MEM_DUP, N_OPTIONS, N_POINTS, NearestNeighbour(), NeighboursInBall(), NEW, POINTS_IN_LEAF, R, randomNormal(), RandomPointInRectangle(), randomSet(), REP, SAMPLING_EXPANSION, SetRectangleLowerLimit(), SetRectangleUpperLimit(), TOPOLOGY, TOPOLOGY_R, TOPOLOGY_S, TRUE, VectorNormalize(), and VectorSquaredDistanceTopologyMin().
Here is the call graph for this function:
|
Follow us!