public abstract static class AbstractFilteredPCAIndex.Factory<NV extends NumberVector<NV,?>,I extends AbstractFilteredPCAIndex<NV>> extends Object implements FilteredLocalPCAIndex.Factory<NV,I>, Parameterizable
Modifier and Type | Class and Description |
---|---|
static class |
AbstractFilteredPCAIndex.Factory.Parameterizer<NV extends NumberVector<NV,?>,I extends AbstractFilteredPCAIndex<NV>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
protected PCAFilteredRunner<NV> |
pca
PCA utility object.
|
static OptionID |
PCA_DISTANCE_ID
Parameter to specify the distance function used for running PCA.
|
protected DistanceFunction<NV,DoubleDistance> |
pcaDistanceFunction
Holds the instance of the distance function specified by
PCA_DISTANCE_ID . |
Constructor and Description |
---|
AbstractFilteredPCAIndex.Factory(DistanceFunction<NV,DoubleDistance> pcaDistanceFunction,
PCAFilteredRunner<NV> pca)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
abstract I |
instantiate(Relation<NV> relation)
Instantiate the index for a given database.
|
public static final OptionID PCA_DISTANCE_ID
-localpca.distancefunction
protected DistanceFunction<NV extends NumberVector<NV,?>,DoubleDistance> pcaDistanceFunction
PCA_DISTANCE_ID
.protected PCAFilteredRunner<NV extends NumberVector<NV,?>> pca
public AbstractFilteredPCAIndex.Factory(DistanceFunction<NV,DoubleDistance> pcaDistanceFunction, PCAFilteredRunner<NV> pca)
pcaDistanceFunction
- distance Functionpca
- PCA runnerpublic abstract I instantiate(Relation<NV> relation)
FilteredLocalPCAIndex.Factory
instantiate
in interface IndexFactory<NV extends NumberVector<NV,?>,I extends AbstractFilteredPCAIndex<NV>>
instantiate
in interface FilteredLocalPCAIndex.Factory<NV extends NumberVector<NV,?>,I extends AbstractFilteredPCAIndex<NV>>
instantiate
in interface LocalProjectionIndex.Factory<NV extends NumberVector<NV,?>,I extends AbstractFilteredPCAIndex<NV>>
relation
- Relation to usepublic TypeInformation getInputTypeRestriction()
IndexFactory
getInputTypeRestriction
in interface IndexFactory<NV extends NumberVector<NV,?>,I extends AbstractFilteredPCAIndex<NV>>