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>innerInner index factory.(package private) doublekmultiMultiplier for k.(package private) booleanmaterializeWhether to use a materialized view, or a virtual view.(package private) booleannorefineDisable refinement of distances.(package private) Projection<O,I>projProjection 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 TypeInformationgetInputTypeRestriction()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:IndexFactorySets the database in the distance function of this index (if existing).- Specified by:
instantiatein interfaceIndexFactory<O>- Parameters:
relation- the relation to index
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:IndexFactoryGet the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestrictionin interfaceIndexFactory<O>- Returns:
- Type restriction
-
-