de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mktab
Class MkTabTreeFactory<O,D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.index.tree.TreeIndexFactory<O,I>
      extended by de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.AbstractMTreeFactory<O,D,N,E,I>
          extended by de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.AbstractMkTreeUnifiedFactory<O,D,MkTabTreeNode<O,D>,MkTabEntry<D>,MkTabTreeIndex<O,D>>
              extended by de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mktab.MkTabTreeFactory<O,D>
Type Parameters:
O - Object type
D - Distance type
All Implemented Interfaces:
IndexFactory<O,MkTabTreeIndex<O,D>>, InspectionUtilFrequentlyScanned, Parameterizable

public class MkTabTreeFactory<O,D extends Distance<D>>
extends AbstractMkTreeUnifiedFactory<O,D,MkTabTreeNode<O,D>,MkTabEntry<D>,MkTabTreeIndex<O,D>>

Factory for MkTabTrees


Nested Class Summary
static class MkTabTreeFactory.Parameterizer<O,D extends Distance<D>>
          Parameterization class.
 
Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.AbstractMkTreeUnifiedFactory
k_max, K_MAX_ID
 
Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.AbstractMTreeFactory
DISTANCE_FUNCTION_ID, distanceFunction
 
Fields inherited from class de.lmu.ifi.dbs.elki.index.tree.TreeIndexFactory
CACHE_SIZE_ID, cacheSize, FILE_ID, fileName, PAGE_SIZE_ID, pageSize
 
Constructor Summary
MkTabTreeFactory(String fileName, int pageSize, long cacheSize, DistanceFunction<O,D> distanceFunction, int k_max)
          Constructor.
 
Method Summary
protected  Class<MkTabTreeNode<O,D>> getNodeClass()
           
 MkTabTreeIndex<O,D> instantiate(Relation<O> relation)
          Sets the database in the distance function of this index (if existing).
 
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.AbstractMTreeFactory
getInputTypeRestriction
 
Methods inherited from class de.lmu.ifi.dbs.elki.index.tree.TreeIndexFactory
makePageFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MkTabTreeFactory

public MkTabTreeFactory(String fileName,
                        int pageSize,
                        long cacheSize,
                        DistanceFunction<O,D> distanceFunction,
                        int k_max)
Constructor.

Parameters:
fileName -
pageSize -
cacheSize -
distanceFunction -
k_max -
Method Detail

instantiate

public MkTabTreeIndex<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,MkTabTreeIndex<O,D extends Distance<D>>>
Specified by:
instantiate in class TreeIndexFactory<O,MkTabTreeIndex<O,D extends Distance<D>>>
Parameters:
relation - the relation to index

getNodeClass

protected Class<MkTabTreeNode<O,D>> getNodeClass()

Release 0.4.0 (2011-09-20_1324)