public static class KDTree.KDTreeFactory<V extends Vec> extends Object implements VectorCollectionFactory<V>
Constructor and Description |
---|
KDTreeFactory() |
KDTreeFactory(KDTree.PivotSelection pvSelectionMethod) |
Modifier and Type | Method and Description |
---|---|
KDTree.KDTreeFactory<V> |
clone() |
KDTree.PivotSelection |
getPivotSelectionMethod() |
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.
|
void |
setPivotSelectionMethod(KDTree.PivotSelection pivotSelectionMethod) |
public KDTreeFactory(KDTree.PivotSelection pvSelectionMethod)
public KDTreeFactory()
public KDTree.PivotSelection getPivotSelectionMethod()
public void setPivotSelectionMethod(KDTree.PivotSelection pivotSelectionMethod)
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 KDTree.KDTreeFactory<V> clone()
Copyright © 2017. All rights reserved.