Class VAFile.VAFileKNNQuery

    • Field Detail

      • p

        final double p
        LP Norm p parameter.
    • Constructor Detail

      • VAFileKNNQuery

        public VAFileKNNQuery​(DistanceQuery<V> distanceQuery,
                              double p)
        Constructor.
        Parameters:
        distanceQuery - Distance query object
        p - LP norm p
    • Method Detail

      • getKNN

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