de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkcop
Class MkCopTreeFactory<O,D extends NumberDistance<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,MkCoPTreeNode<O,D>,MkCoPEntry<D>,MkCoPTreeIndex<O,D>>
          extended by de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkcop.MkCopTreeFactory<O,D>
Type Parameters:
O - Object type
D - Distance type
All Implemented Interfaces:
IndexFactory<O,MkCoPTreeIndex<O,D>>, InspectionUtilFrequentlyScanned, Parameterizable

public class MkCopTreeFactory<O,D extends NumberDistance<D,?>>
extends AbstractMTreeFactory<O,D,MkCoPTreeNode<O,D>,MkCoPEntry<D>,MkCoPTreeIndex<O,D>>

Factory for a MkCoPTree-Tree


Nested Class Summary
static class MkCopTreeFactory.Parameterizer<O,D extends NumberDistance<D,?>>
          Parameterization class.
 
Field Summary
static OptionID K_ID
          Parameter for k
(package private)  int k_max
          Parameter k.
 
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
MkCopTreeFactory(String fileName, int pageSize, long cacheSize, DistanceFunction<O,D> distanceFunction, int k_max)
          Constructor.
 
Method Summary
protected  Class<MkCoPTreeNode<O,D>> getNodeClass()
           
 MkCoPTreeIndex<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
 

Field Detail

K_ID

public static final OptionID K_ID
Parameter for k


k_max

int k_max
Parameter k.

Constructor Detail

MkCopTreeFactory

public MkCopTreeFactory(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 MkCoPTreeIndex<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,MkCoPTreeIndex<O,D extends NumberDistance<D,?>>>
Specified by:
instantiate in class TreeIndexFactory<O,MkCoPTreeIndex<O,D extends NumberDistance<D,?>>>
Parameters:
relation - the relation to index

getNodeClass

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

Release 0.4.0 (2011-09-20_1324)