O
- Object typepublic abstract static class AbstractCoverTree.Factory<O,I extends AbstractCoverTree<O>> extends Object implements IndexFactory<O,I>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractCoverTree.Factory.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
protected DistanceFunction<? super O> |
distanceFunction
Holds the instance of the trees distance function.
|
protected double |
expansion
Constant expansion rate. 2 would be the intuitive value, but the original
version used 1.3, so we copy this.
|
protected int |
truncate
Truncate tree at this height.
|
Constructor and Description |
---|
Factory(DistanceFunction<? super O> distanceFunction,
double expansion,
int truncate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
instantiate
protected DistanceFunction<? super O> distanceFunction
protected double expansion
protected int truncate
public Factory(DistanceFunction<? super O> distanceFunction, double expansion, int truncate)
distanceFunction
- Distance functionexpansion
- Expansion ratetruncate
- Truncate branches with less than this number of
instances.public TypeInformation getInputTypeRestriction()
IndexFactory
getInputTypeRestriction
in interface IndexFactory<O,I extends AbstractCoverTree<O>>
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.