public class NearestNeighborFlagSearchOnKDTree<T> extends Object implements NearestNeighborSearch<FlagNode<T>>
Modifier and Type | Field and Description |
---|---|
protected KDTreeNode<FlagNode<T>> |
bestPoint |
protected double |
bestSquDistance |
protected int |
n |
protected double[] |
pos |
protected KDTree<FlagNode<T>> |
tree |
Constructor and Description |
---|
NearestNeighborFlagSearchOnKDTree(KDTree<FlagNode<T>> tree) |
Modifier and Type | Method and Description |
---|---|
NearestNeighborFlagSearchOnKDTree<T> |
copy() |
double |
getDistance() |
RealLocalizable |
getPosition() |
Sampler<FlagNode<T>> |
getSampler() |
double |
getSquareDistance() |
int |
numDimensions() |
void |
search(RealLocalizable p) |
protected void |
searchNode(KDTreeNode<FlagNode<T>> current) |
protected final int n
protected final double[] pos
protected KDTreeNode<FlagNode<T>> bestPoint
protected double bestSquDistance
public int numDimensions()
numDimensions
in interface EuclideanSpace
public void search(RealLocalizable p)
search
in interface NearestNeighborSearch<FlagNode<T>>
protected void searchNode(KDTreeNode<FlagNode<T>> current)
public Sampler<FlagNode<T>> getSampler()
getSampler
in interface NearestNeighborSearch<FlagNode<T>>
public RealLocalizable getPosition()
getPosition
in interface NearestNeighborSearch<FlagNode<T>>
public double getSquareDistance()
getSquareDistance
in interface NearestNeighborSearch<FlagNode<T>>
public double getDistance()
getDistance
in interface NearestNeighborSearch<FlagNode<T>>
public NearestNeighborFlagSearchOnKDTree<T> copy()
copy
in interface NearestNeighborSearch<FlagNode<T>>
Copyright © 2015–2021 Fiji. All rights reserved.