Package elki.index.projected
Class ProjectedIndex.Factory<O,I>
- java.lang.Object
-
- elki.index.projected.ProjectedIndex.Factory<O,I>
-
- Type Parameters:
O
- Outer object type.I
- Inner object type.
- All Implemented Interfaces:
IndexFactory<O>
- Direct Known Subclasses:
LatLngAsECEFIndex.Factory
,LngLatAsECEFIndex.Factory
,PINN
- Enclosing class:
- ProjectedIndex<O,I>
public static class ProjectedIndex.Factory<O,I> extends java.lang.Object implements IndexFactory<O>
Index factory.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) IndexFactory<I>
inner
Inner index factory.(package private) double
kmulti
Multiplier for k.(package private) boolean
materialize
Whether to use a materialized view, or a virtual view.(package private) boolean
norefine
Disable refinement of distances.(package private) Projection<O,I>
proj
Projection to use.
-
Constructor Summary
Constructors Constructor Description Factory(Projection<O,I> proj, IndexFactory<I> inner, boolean materialize, boolean norefine, double kmulti)
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.ProjectedIndex<O,I>
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
-
-
-
Field Detail
-
proj
Projection<O,I> proj
Projection to use.
-
inner
IndexFactory<I> inner
Inner index factory.
-
materialize
boolean materialize
Whether to use a materialized view, or a virtual view.
-
norefine
boolean norefine
Disable refinement of distances.
-
kmulti
double kmulti
Multiplier for k.
-
-
Constructor Detail
-
Factory
public Factory(Projection<O,I> proj, IndexFactory<I> inner, boolean materialize, boolean norefine, double kmulti)
Constructor.- Parameters:
proj
- Projectioninner
- Inner indexmaterialize
- Flag for materializingnorefine
- Disable refinement of distanceskmulti
- Multiplicator for k.
-
-
Method Detail
-
instantiate
public ProjectedIndex<O,I> 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>
- 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>
- Returns:
- Type restriction
-
-