Class KNearestNeighborSearchOnKDTree<T>

java.lang.Object
net.imglib2.neighborsearch.KNearestNeighborSearchOnKDTree<T>
All Implemented Interfaces:
EuclideanSpace, KNearestNeighborSearch<T>, NearestNeighborSearch<T>

public class KNearestNeighborSearchOnKDTree<T> extends Object implements KNearestNeighborSearch<T>
Implementation of KNearestNeighborSearch search for kd-trees.
Author:
Tobias Pietzsch
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected KDTreeNode<T>[]
     
    protected double[]
     
    protected final int
     
    protected final int
     
    protected final double[]
     
    protected KDTree<T>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a copy.
    double
    Access the Euclidean distance between the reference location as used for the last search and the nearest neighbor, ordered by square Euclidean distance.
    double
    getDistance(int i)
    Access the Euclidean distance between the reference location as used for the last search and the ith nearest neighbor, ordered by square Euclidean distance.
    int
    Get the of k nearest neighbor points used in this search
    Access the position of the nearest neighbor, ordered by square Euclidean distance.
    getPosition(int i)
    Access the position of the ith nearest neighbor, ordered by square Euclidean distance.
    Access the data of the nearest neighbor.
    getSampler(int i)
    Access the data of the ith nearest neighbor, ordered by square Euclidean distance.
    double
    Access the square Euclidean distance between the reference location as used for the last search and the nearest neighbor, ordered by square Euclidean distance.
    double
    Access the square Euclidean distance between the reference location as used for the last search and the ith nearest neighbor, ordered by square Euclidean distance.
    int
    Gets the space's number of dimensions.
    void
    Perform k-nearest-neighbor search for a reference coordinate.
    protected void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait