Package elki.index.tree.spatial.kd
Class MemoryKDTree.Factory<O extends NumberVector>
- java.lang.Object
-
- elki.index.tree.spatial.kd.MemoryKDTree.Factory<O>
-
- Type Parameters:
O
- Vector type
- All Implemented Interfaces:
IndexFactory<O>
- Enclosing class:
- MemoryKDTree<O extends NumberVector>
@Alias("kd") public static class MemoryKDTree.Factory<O extends NumberVector> extends java.lang.Object implements IndexFactory<O>
Factory class- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MemoryKDTree.Factory.Par<O extends NumberVector>
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description (package private) int
leafsize
Maximum size of leaf nodes.(package private) SplitStrategy
split
Split stragegy
-
Constructor Summary
Constructors Constructor Description Factory(SplitStrategy split, int leafsize)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInformation
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.MemoryKDTree<O>
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
-
-
-
Field Detail
-
split
SplitStrategy split
Split stragegy
-
leafsize
int leafsize
Maximum size of leaf nodes.
-
-
Constructor Detail
-
Factory
public Factory(SplitStrategy split, int leafsize)
Constructor.- Parameters:
split
- Split strategyleafsize
- Maximum size of leaf nodes.
-
-
Method Detail
-
instantiate
public MemoryKDTree<O> 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 interfaceIndexFactory<O extends NumberVector>
- Parameters:
relation
- the relation to index
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:IndexFactory
Get the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestriction
in interfaceIndexFactory<O extends NumberVector>
- Returns:
- Type restriction
-
-