public class VectorCollectionUtils extends Object
VectorCollection
Constructor and Description |
---|
VectorCollectionUtils() |
Modifier and Type | Method and Description |
---|---|
static <V0 extends Vec,V1 extends Vec> |
allEpsNeighbors(VectorCollection<V0> collection,
List<V1> search,
double radius,
ExecutorService threadpool)
Searches the given collection for all the neighbors within a distance of radius for every data point in the given search list.
|
static <V0 extends Vec,V1 extends Vec> |
allNearestNeighbors(VectorCollection<V0> collection,
List<V1> search,
int k)
Searches the given collection for the k nearest neighbors for every data point in the given search list.
|
static <V0 extends Vec,V1 extends Vec> |
allNearestNeighbors(VectorCollection<V0> collection,
List<V1> search,
int k,
ExecutorService threadpool)
Searches the given collection for the k nearest neighbors for every data point in the given search list.
|
static <V0 extends Vec,V1 extends Vec> |
allNearestNeighbors(VectorCollection<V0> collection,
V1[] search,
int k)
Searches the given collection for the k nearest neighbors for every data point in the given search list.
|
static <V0 extends Vec,V1 extends Vec> |
allNearestNeighbors(VectorCollection<V0> collection,
V1[] search,
int k,
ExecutorService threadpool)
Searches the given collection for the k nearest neighbors for every data point in the given search list.
|
static <V0 extends Vec,V1 extends Vec> |
getKthNeighborStats(VectorCollection<V0> collection,
List<V1> search,
int k)
Computes statistics about the distance of the k'th nearest neighbor for each data point in the search list.
|
static <V0 extends Vec,V1 extends Vec> |
getKthNeighborStats(VectorCollection<V0> collection,
List<V1> search,
int k,
ExecutorService threadpool)
Computes statistics about the distance of the k'th nearest neighbor for each data point in the search list.
|
static <V0 extends Vec,V1 extends Vec> |
getKthNeighborStats(VectorCollection<V0> collection,
V1[] search,
int k)
Computes statistics about the distance of the k'th nearest neighbor for each data point in the search list.
|
static <V0 extends Vec,V1 extends Vec> |
getKthNeighborStats(VectorCollection<V0> collection,
V1[] search,
int k,
ExecutorService threadpool)
Computes statistics about the distance of the k'th nearest neighbor for each data point in the search list.
|
public static <V0 extends Vec,V1 extends Vec> List<List<? extends VecPaired<V0,Double>>> allNearestNeighbors(VectorCollection<V0> collection, List<V1> search, int k)
V0
- the vector type in the collectionV1
- the type of vector in the search collectioncollection
- the collection to search fromsearch
- the vectors to search fork
- the number of nearest neighborspublic static <V0 extends Vec,V1 extends Vec> List<List<? extends VecPaired<V0,Double>>> allNearestNeighbors(VectorCollection<V0> collection, V1[] search, int k)
V0
- the vector type in the collectionV1
- the type of vector in the search arraycollection
- the collection to search fromsearch
- the vectors to search fork
- the number of nearest neighborspublic static <V0 extends Vec,V1 extends Vec> List<List<? extends VecPaired<V0,Double>>> allNearestNeighbors(VectorCollection<V0> collection, List<V1> search, int k, ExecutorService threadpool)
V0
- the vector type in the collectionV1
- the type of vector in the search collectioncollection
- the collection to search fromsearch
- the vectors to search fork
- the number of nearest neighborsthreadpool
- the source of threads to perform the computation in parallelpublic static <V0 extends Vec,V1 extends Vec> List<List<? extends VecPaired<V0,Double>>> allEpsNeighbors(VectorCollection<V0> collection, List<V1> search, double radius, ExecutorService threadpool)
V0
- the vector type in the collectionV1
- the type of vector in the search collectioncollection
- the collection to search fromsearch
- the vectors to search forradius
- the distance to search for neighborsthreadpool
- the source of threads to perform the computation in parallelpublic static <V0 extends Vec,V1 extends Vec> List<List<? extends VecPaired<V0,Double>>> allNearestNeighbors(VectorCollection<V0> collection, V1[] search, int k, ExecutorService threadpool)
V0
- the vector type in the collectionV1
- the type of vector in the search collectioncollection
- the collection to search fromsearch
- the vectors to search fork
- the number of nearest neighborsthreadpool
- the source of threads to perform the computation in parallelpublic static <V0 extends Vec,V1 extends Vec> OnLineStatistics getKthNeighborStats(VectorCollection<V0> collection, List<V1> search, int k)
V0
- the type of vector in the collectionV1
- the type of vector in the search collectioncollection
- the collection of vectors to query fromsearch
- the list of vectors to search fork
- the nearest neighbor to usepublic static <V0 extends Vec,V1 extends Vec> OnLineStatistics getKthNeighborStats(VectorCollection<V0> collection, V1[] search, int k)
V0
- the type of vector in the collectionV1
- the type of vector in the search arraycollection
- the collection of vectors to query fromsearch
- the array of vectors to search fork
- the nearest neighbor to usepublic static <V0 extends Vec,V1 extends Vec> OnLineStatistics getKthNeighborStats(VectorCollection<V0> collection, List<V1> search, int k, ExecutorService threadpool)
V0
- the type of vector in the collectionV1
- the type of vector in the search collectioncollection
- the collection of vectors to query fromsearch
- the list of vectors to search fork
- the nearest neighbor to usethreadpool
- the source of threads to perform the computation in parallelpublic static <V0 extends Vec,V1 extends Vec> OnLineStatistics getKthNeighborStats(VectorCollection<V0> collection, V1[] search, int k, ExecutorService threadpool)
V0
- the type of vector in the collectionV1
- the type of vector in the search arraycollection
- the collection of vectors to query fromsearch
- the array of vectors to search fork
- the nearest neighbor to usethreadpool
- the source of threads to perform the computation in parallelCopyright © 2017. All rights reserved.