Documentation of 'jsat.linear.vectorcollection.DualTree' Java class
DualTree
jsat.linear.vectorcollection

Interface DualTree<V extends Vec>

    • Method Detail

      • dist

        default double dist(int self_index,
                            int other_index,
                            DualTree<V> other)
      • search

        void search(Vec query,
                    int numNeighbors,
                    java.util.List<java.lang.Integer> neighbors,
                    java.util.List<java.lang.Double> distances)
        Description copied from interface: VectorCollection
        Performs k-Nearest Neighbor search of the current collection. The index and distance of each found neighbor will be placed into the given Lists.
        Specified by:
        search in interface VectorCollection<V extends Vec>
        Parameters:
        query - the point to search for the k-nearest neighbors of
        numNeighbors - the number of neighbors k to search for.
        neighbors - the list to store the index of the neighbors in. Will be sorted by distance to the query, and paired with the values in distances.
        distances - the list to store the distance of the neighbors to the query in. Will be sorted, and paired with the values in neighbors.
      • search

        default void search(VectorCollection<V> VC,
                            int numNeighbors,
                            java.util.List<java.util.List<java.lang.Integer>> neighbors,
                            java.util.List<java.util.List<java.lang.Double>> distances,
                            boolean parallel)
        Specified by:
        search in interface VectorCollection<V extends Vec>
      • search

        default void search(VectorCollection<V> VC,
                            double r_min,
                            double r_max,
                            java.util.List<java.util.List<java.lang.Integer>> neighbors,
                            java.util.List<java.util.List<java.lang.Double>> distances,
                            boolean parallel)
        Specified by:
        search in interface VectorCollection<V extends Vec>
      • traverse

        default void traverse(DualTree<V> Q,
                              BaseCaseDT base,
                              ScoreDT score,
                              boolean improvedTraverse,
                              boolean parallel)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.