de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants
Class AbstractMTreeFactory<O,D extends Distance<D>,N extends AbstractMTreeNode<O,D,N,E>,E extends MTreeEntry<D>,I extends AbstractMTree<O,D,N,E> & Index>
java.lang.Object
de.lmu.ifi.dbs.elki.index.tree.TreeIndexFactory<O,I>
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.AbstractMTreeFactory<O,D,N,E,I>
- Type Parameters:
O
- Object typeD
- Distance typeN
- Node typeE
- Entry typeI
- Index type
- All Implemented Interfaces:
- IndexFactory<O,I>, InspectionUtilFrequentlyScanned, Parameterizable
- Direct Known Subclasses:
- AbstractMkTreeUnifiedFactory, MkAppTreeFactory, MkCopTreeFactory, MTreeFactory
public abstract class AbstractMTreeFactory<O,D extends Distance<D>,N extends AbstractMTreeNode<O,D,N,E>,E extends MTreeEntry<D>,I extends AbstractMTree<O,D,N,E> & Index>
- extends TreeIndexFactory<O,I>
Abstract factory for various MTrees
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DISTANCE_FUNCTION_ID
public static final OptionID DISTANCE_FUNCTION_ID
- Parameter to specify the distance function to determine the distance
between database objects, must extend
DistanceFunction
.
Key: -mtree.distancefunction
Default value:
EuclideanDistanceFunction
distanceFunction
protected DistanceFunction<O,D extends Distance<D>> distanceFunction
- Holds the instance of the distance function specified by
DISTANCE_FUNCTION_ID
.
AbstractMTreeFactory
public AbstractMTreeFactory(String fileName,
int pageSize,
long cacheSize,
DistanceFunction<O,D> distanceFunction)
- Constructor.
- Parameters:
fileName
- pageSize
- cacheSize
- distanceFunction
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
- Description copied from interface:
IndexFactory
- Get the input type restriction used for negotiating the data query.
- Returns:
- Type restriction