O
- Object typeD
- Distance typepublic class MkCopTreeFactory<O,D extends NumberDistance<D,?>> extends AbstractMTreeFactory<O,D,MkCoPTreeNode<O,D>,MkCoPEntry<D>,MkCoPTreeIndex<O,D>>
Modifier and Type | Class and Description |
---|---|
static class |
MkCopTreeFactory.Parameterizer<O,D extends NumberDistance<D,?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static OptionID |
K_ID
Parameter for k
|
(package private) int |
k_max
Parameter k.
|
DISTANCE_FUNCTION_ID, distanceFunction
CACHE_SIZE_ID, cacheSize, FILE_ID, fileName, PAGE_SIZE_ID, pageSize
Constructor and Description |
---|
MkCopTreeFactory(String fileName,
int pageSize,
long cacheSize,
DistanceFunction<O,D> distanceFunction,
int k_max)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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).
|
getInputTypeRestriction
makePageFile
public static final OptionID K_ID
int k_max
public MkCopTreeFactory(String fileName, int pageSize, long cacheSize, DistanceFunction<O,D> distanceFunction, int k_max)
fileName
- pageSize
- cacheSize
- distanceFunction
- k_max
- public MkCoPTreeIndex<O,D> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,MkCoPTreeIndex<O,D extends NumberDistance<D,?>>>
instantiate
in class TreeIndexFactory<O,MkCoPTreeIndex<O,D extends NumberDistance<D,?>>>
relation
- the relation to indexprotected Class<MkCoPTreeNode<O,D>> getNodeClass()