Class LinearScanEuclideanKNNByObject<O extends NumberVector>

  • Type Parameters:
    O - relation object type
    All Implemented Interfaces:
    KNNSearcher<O>, LinearScanQuery

    public class LinearScanEuclideanKNNByObject<O extends NumberVector>
    extends LinearScanPrimitiveKNNByObject<O>
    Instance of this query for a particular database.

    This is a subtle optimization: for primitive queries, it is clearly faster to retrieve the query object from the relation only once, and to first find the nearest neighbors with squared Euclidean distances, then only compute the square root for the results.

    Since:
    0.7.0
    Author:
    Erich Schubert