public class VAFile.VAFileKNNQuery extends AbstractRefiningIndex.AbstractKNNQuery
Modifier and Type | Field and Description |
---|---|
(package private) double |
p
LP Norm p parameter.
|
distanceQuery, relation
HINT_BULK, HINT_EXACT, HINT_HEAVY_USE, HINT_NO_CACHE, HINT_OPTIMIZED_ONLY, HINT_SINGLE
Constructor and Description |
---|
VAFile.VAFileKNNQuery(DistanceQuery<V> distanceQuery,
double p)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
KNNList |
getKNNForObject(V query,
int k)
Get the k nearest neighbors for a particular id.
|
incRefinements, refine
getKNNForBulkDBIDs, getKNNForDBID
public VAFile.VAFileKNNQuery(DistanceQuery<V> distanceQuery, double p)
distanceQuery
- Distance query objectp
- LP norm ppublic KNNList getKNNForObject(V query, int k)
KNNQuery
getKNNForObject
in interface KNNQuery<V extends NumberVector>
getKNNForObject
in class AbstractDistanceKNNQuery<V extends NumberVector>
query
- Query objectk
- Number of neighbors requestedCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.