public class FastRangeSearch<X extends Jcg.geometry.Point_> extends java.lang.Object implements RangeSearch<X>
Modifier and Type | Field and Description |
---|---|
(package private) static long |
basicQueryTime |
(package private) static long |
constructionTime |
private KdTree<X> |
kdTree |
(package private) static long |
queryTime |
Constructor and Description |
---|
FastRangeSearch(PointCloud N)
Construct the data structure for range search
|
Modifier and Type | Method and Description |
---|---|
PointCloud |
NN(X q,
double sqRad)
Main search procedure (for Range search queries)
|
PointCloud |
OrthogonalRangeSearch(X q,
double sqRad)
Perform range search using KdTrees
|
static void |
timePerformance() |
static long queryTime
static long constructionTime
static long basicQueryTime
public FastRangeSearch(PointCloud N)
PointCloud
- the input pointspublic static void timePerformance()
public PointCloud NN(X q, double sqRad)
public PointCloud OrthogonalRangeSearch(X q, double sqRad)
OrthogonalRangeSearch
in interface RangeSearch<X extends Jcg.geometry.Point_>
q
- the query pointsqRad
- the (squared) radius of the Euclidean ball