public static class RTree.RTreeFactory<V extends Vec> extends Object implements VectorCollectionFactory<V>
Constructor and Description |
---|
RTreeFactory() |
Modifier and Type | Method and Description |
---|---|
RTree.RTreeFactory<V> |
clone() |
VectorCollection<V> |
getVectorCollection(List<V> source,
DistanceMetric distanceMetric)
Creates a new Vector Collection from the given source using the provided metric.
|
VectorCollection<V> |
getVectorCollection(List<V> source,
DistanceMetric distanceMetric,
ExecutorService threadpool)
Creates a new Vector Collection from the given source using the provided metric.
|
public VectorCollection<V> getVectorCollection(List<V> source, DistanceMetric distanceMetric)
VectorCollectionFactory
getVectorCollection
in interface VectorCollectionFactory<V extends Vec>
source
- the list of vectors to put into the collection.distanceMetric
- the distance measure to use for the spacepublic VectorCollection<V> getVectorCollection(List<V> source, DistanceMetric distanceMetric, ExecutorService threadpool)
VectorCollectionFactory
getVectorCollection
in interface VectorCollectionFactory<V extends Vec>
source
- the list of vectors to put into the collection.distanceMetric
- the distance measure to use for the spacethreadpool
- the source for threads for multi threaded executionpublic RTree.RTreeFactory<V> clone()
Copyright © 2017. All rights reserved.