de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkmax
Class MkMaxTreeFactory<O,D extends Distance<D>>
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>
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.AbstractMkTreeUnifiedFactory<O,D,MkMaxTreeNode<O,D>,MkMaxEntry<D>,MkMaxTreeIndex<O,D>>
de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkmax.MkMaxTreeFactory<O,D>
- Type Parameters:
O
- Object typeD
- Distance type
- All Implemented Interfaces:
- IndexFactory<O,MkMaxTreeIndex<O,D>>, InspectionUtilFrequentlyScanned, Parameterizable
public class MkMaxTreeFactory<O,D extends Distance<D>>
- extends AbstractMkTreeUnifiedFactory<O,D,MkMaxTreeNode<O,D>,MkMaxEntry<D>,MkMaxTreeIndex<O,D>>
Factory for MkMaxTrees
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MkMaxTreeFactory
public MkMaxTreeFactory(String fileName,
int pageSize,
long cacheSize,
DistanceFunction<O,D> distanceFunction,
int k_max)
- Constructor.
- Parameters:
fileName
- pageSize
- cacheSize
- distanceFunction
- k_max
-
instantiate
public MkMaxTreeIndex<O,D> instantiate(Relation<O> relation)
- Description copied from interface:
IndexFactory
- Sets the database in the distance function of this index (if existing).
- Specified by:
instantiate
in interface IndexFactory<O,MkMaxTreeIndex<O,D extends Distance<D>>>
- Specified by:
instantiate
in class TreeIndexFactory<O,MkMaxTreeIndex<O,D extends Distance<D>>>
- Parameters:
relation
- the relation to index
getNodeClass
protected Class<MkMaxTreeNode<O,D>> getNodeClass()