Class GNAT.GNATKNNDBIDSearcher

    • Field Summary

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

      • query

        private DBIDRef query
        Current query object
    • Constructor Detail

      • GNATKNNDBIDSearcher

        public GNATKNNDBIDSearcher()
    • Method Detail

      • getKNN

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