public static class CoverTree.CoverTreeFactory<V extends Vec> extends Object implements VectorCollectionFactory<V>
Constructor and Description |
---|
CoverTreeFactory() |
Modifier and Type | Method and Description |
---|---|
CoverTree.CoverTreeFactory<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 CoverTree.CoverTreeFactory<V> clone()
Copyright © 2017. All rights reserved.