public interface VectorCollection<V extends Vec> extends Cloneable, Serializable
Modifier and Type | Method and Description |
---|---|
VectorCollection<V> |
clone() |
List<? extends VecPaired<V,Double>> |
search(Vec query,
double range)
Searches the space for all vectors that are within a given range of the query vector.
|
List<? extends VecPaired<V,Double>> |
search(Vec query,
int neighbors)
Searches the space for the k neighbors that are closest to the given query vector
|
int |
size()
Returns the number of vectors stored in the collection
|
List<? extends VecPaired<V,Double>> search(Vec query, double range)
query
- the vector we want to find others nearrange
- the search range around our queryList<? extends VecPaired<V,Double>> search(Vec query, int neighbors)
query
- the vector we want to find neighbors ofneighbors
- the maximum number of neighbors to returnint size()
VectorCollection<V> clone()
Copyright © 2017. All rights reserved.