Documentation of 'org.ddogleg.nn.FactoryNearestNeighbor' Java class
FactoryNearestNeighbor
org.ddogleg.nn

Class FactoryNearestNeighbor



  • public class FactoryNearestNeighbor
    extends java.lang.Object
    Factory for creating implementations of NearestNeighbor.
    • Constructor Detail

      • FactoryNearestNeighbor

        public FactoryNearestNeighbor()
    • Method Detail

      • kdRandomForest

        public static <D> NearestNeighbor<D> kdRandomForest(int maxNodesSearched,
                                                            int numTrees,
                                                            int numConsiderSplit,
                                                            long randomSeed)
        Approximate NearestNeighbor search which uses a set of randomly generated K-D trees and a Best-Bin-First search. Designed to work in high dimensional space. Distance measure is Euclidean squared.
        Type Parameters:
        D - Associated data type.
        Parameters:
        maxNodesSearched - Maximum number of nodes it will search. Controls speed and accuracy.
        numTrees - Number of trees that are considered. Try 10 and tune.
        numConsiderSplit - Number of nodes that are considered when generating a tree. Must be less than the point's dimension. Try 5
        randomSeed - Seed used by random number generator
        Returns:
        NearestNeighbor implementation
        See Also:
        KdForestBbfSearch, AxisSplitterMedian
      • vptree

        public static <D> NearestNeighbor<D> vptree(long randSeed)
        Vantage point tree implementation for nearest neighbor search. Slower than KD-Tree on random data, but faster than it for some pathological cases.
        Type Parameters:
        D - Associated data type.
        Parameters:
        randSeed - Random seed
        Returns:
        NearestNeighbor implementation
        See Also:
        VpTree

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.