Package elki.index.tree.metrical.vptree
Class GNAT.Factory<O extends NumberVector>
- java.lang.Object
-
- elki.index.tree.metrical.vptree.GNAT.Factory<O>
-
- Type Parameters:
O
- Object type
- All Implemented Interfaces:
IndexFactory<O>
@Alias({"MVPTree","mvp"}) public static class GNAT.Factory<O extends NumberVector> extends java.lang.Object implements IndexFactory<O>
Index Factory- Author:
- Robert Gehde
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GNAT.Factory.Par<O extends NumberVector>
Parameterization class.
-
Constructor Summary
Constructors Constructor Description Factory(Distance<? super O> distFunc, RandomFactory random, int numberVantagePoints)
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.GNAT<O>
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
-
-
-
Field Detail
-
distance
Distance<? super O extends NumberVector> distance
Distance Function
-
random
RandomFactory random
Random factory
-
numbervps
int numbervps
Sample size
-
-
Constructor Detail
-
Factory
public Factory(Distance<? super O> distFunc, RandomFactory random, int numberVantagePoints)
Constructor.- Parameters:
distFunc
- Distance functionrandom
- Random generatornumberVantagePoints
- Number of vantage points to use
-
-
Method Detail
-
instantiate
public GNAT<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
-
-