The Cuik KD-Tree Library
Test 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 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. Macro Definition 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 82 of file test-cuik-kdtree.c. Referenced by main().
Number of points used by default. Definition at line 89 of file test-cuik-kdtree.c. Referenced by main().
Dimension of the points used by default. Definition at line 96 of file test-cuik-kdtree.c. Referenced by main().
Topology of the points used by default. Definition at line 103 of file test-cuik-kdtree.c. Referenced by main().
Maximum number of points in a leaf. Definition at line 110 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 119 of file test-cuik-kdtree.c. Referenced by main().
Number of queries used when evaluating the efficiency of the methods. Definition at line 134 of file test-cuik-kdtree.c. Referenced by main().
Number of command line options available to the test program. Definition at line 142 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 170 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 175 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 208 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, PlotKDtree(), POINTS_IN_LEAF, POINTS_ON_SPHERE, 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!