Class GNAT.GNATKNNObjectSearcher

    • Field Summary

      Modifier and Type Field Description
      private O query
      Current query object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      KNNList getKNN​(O query, int k)
      Get the k nearest neighbors for a particular object.
      protected double queryDistance​(DBIDRef p)
      Query the distance to a query object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • query

        private O query
        Current query object
    • Constructor Detail

      • GNATKNNObjectSearcher

        public GNATKNNObjectSearcher()
    • 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>
        query - query object
        k - Number of neighbors requested