Class VPTree.VPTreeKNNObjectSearcher

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private O query
      Current query object
    • Field Detail

      • query

        private O query
        Current query object
    • Constructor Detail

      • VPTreeKNNObjectSearcher

        public VPTreeKNNObjectSearcher()
    • Method Detail

      • getKNN

        public KNNList getKNN​(O query,
                              int k)
        Description copied from interface: KNNSearcher
        Get the k nearest neighbors for a particular object.
        Specified by:
        getKNN in interface KNNSearcher<O>
        Parameters:
        query - query object
        k - Number of neighbors requested
        Returns:
        neighbors