de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkapp
Class MkAppTreeFactory<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,MkAppTreeNode<O,D>,MkAppEntry<D>,MkAppTreeIndex<O,D>>
          extended by de.lmu.ifi.dbs.elki.index.tree.metrical.mtreevariants.mktrees.mkapp.MkAppTreeFactory<O,D>
Type Parameters:
O - Object type
D - Distance type
All Implemented Interfaces:
IndexFactory<O,MkAppTreeIndex<O,D>>, InspectionUtilFrequentlyScanned, Parameterizable

public class MkAppTreeFactory<O,D extends NumberDistance<D,?>>
extends AbstractMTreeFactory<O,D,MkAppTreeNode<O,D>,MkAppEntry<D>,MkAppTreeIndex<O,D>>

Factory for a MkApp-Tree


Nested Class Summary
static class MkAppTreeFactory.Parameterizer<O,D extends NumberDistance<D,?>>
          Parameterization class.
 
Field Summary
static OptionID K_ID
          Parameter for k
private  int k_max
          Parameter k.
private  boolean log
          Flag log.
static OptionID NOLOG_ID
          Parameter for nolog
private  int p
          Parameter p.
static OptionID P_ID
          Parameter for p
 
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
MkAppTreeFactory(String fileName, int pageSize, long cacheSize, DistanceFunction<O,D> distanceFunction, int k_max, int p, boolean log)
          Constructor.
 
Method Summary
protected  Class<MkAppTreeNode<O,D>> getNodeClass()
           
 MkAppTreeIndex<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

NOLOG_ID

public static final OptionID NOLOG_ID
Parameter for nolog


K_ID

public static final OptionID K_ID
Parameter for k


P_ID

public static final OptionID P_ID
Parameter for p


k_max

private int k_max
Parameter k.


p

private int p
Parameter p.


log

private boolean log
Flag log.

Constructor Detail

MkAppTreeFactory

public MkAppTreeFactory(String fileName,
                        int pageSize,
                        long cacheSize,
                        DistanceFunction<O,D> distanceFunction,
                        int k_max,
                        int p,
                        boolean log)
Constructor.

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

instantiate

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

getNodeClass

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

Release 0.4.0 (2011-09-20_1324)