Class LAESA.LAESAKNNByObjectSearcher

  • All Implemented Interfaces:
    KNNSearcher<O>
    Enclosing class:
    LAESA<O>

    public class LAESA.LAESAKNNByObjectSearcher
    extends LAESA.LAESAKNNSearcher<O>
    KNN searcher by object class
    Author:
    Robert Gehde
    • Field Detail

      • query

        private O query
        Query object
    • Constructor Detail

      • LAESAKNNByObjectSearcher

        public LAESAKNNByObjectSearcher​(int k)
        Constructor.
        Parameters:
        k - condition parameter
    • Method Detail

      • getKNN

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