O
- Object typeD
- Distance typepublic class MkAppTreeFactory<O,D extends NumberDistance<D,?>> extends AbstractMTreeFactory<O,D,MkAppTreeNode<O,D>,MkAppEntry<D>,MkAppTreeIndex<O,D>>
Modifier and Type | Class and Description |
---|---|
static class |
MkAppTreeFactory.Parameterizer<O,D extends NumberDistance<D,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
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
|
DISTANCE_FUNCTION_ID, distanceFunction
CACHE_SIZE_ID, cacheSize, FILE_ID, fileName, PAGE_SIZE_ID, pageSize
Constructor and Description |
---|
MkAppTreeFactory(String fileName,
int pageSize,
long cacheSize,
DistanceFunction<O,D> distanceFunction,
int k_max,
int p,
boolean log)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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).
|
getInputTypeRestriction
makePageFile
public static final OptionID NOLOG_ID
public static final OptionID K_ID
public static final OptionID P_ID
private int k_max
private int p
private boolean log
public MkAppTreeFactory(String fileName, int pageSize, long cacheSize, DistanceFunction<O,D> distanceFunction, int k_max, int p, boolean log)
fileName
- pageSize
- cacheSize
- distanceFunction
- k_max
- p
- log
- public MkAppTreeIndex<O,D> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,MkAppTreeIndex<O,D extends NumberDistance<D,?>>>
instantiate
in class TreeIndexFactory<O,MkAppTreeIndex<O,D extends NumberDistance<D,?>>>
relation
- the relation to indexprotected Class<MkAppTreeNode<O,D>> getNodeClass()