public static class KNNQueryFilteredPCAIndex.Factory<V extends NumberVector<?>> extends AbstractFilteredPCAIndex.Factory<V,KNNQueryFilteredPCAIndex<V>>
Modifier and Type | Class and Description |
---|---|
static class |
KNNQueryFilteredPCAIndex.Factory.Parameterizer<NV extends NumberVector<?>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private Integer |
k
Holds the value of
K_ID . |
static OptionID |
K_ID
Optional parameter to specify the number of nearest neighbors considered
in the PCA, must be an integer greater than 0.
|
pca, PCA_DISTANCE_ID, pcaDistanceFunction
Constructor and Description |
---|
KNNQueryFilteredPCAIndex.Factory(DistanceFunction<V,DoubleDistance> pcaDistanceFunction,
PCAFilteredRunner<V> pca,
Integer k)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
KNNQueryFilteredPCAIndex<V> |
instantiate(Relation<V> relation)
Instantiate the index for a given database.
|
getInputTypeRestriction
public static final OptionID K_ID
Key: -localpca.k
Default value: three times of the dimensionality of the database objects
public KNNQueryFilteredPCAIndex.Factory(DistanceFunction<V,DoubleDistance> pcaDistanceFunction, PCAFilteredRunner<V> pca, Integer k)
pcaDistanceFunction
- distancepca
- PCA classk
- kpublic KNNQueryFilteredPCAIndex<V> instantiate(Relation<V> relation)
FilteredLocalPCAIndex.Factory
instantiate
in interface IndexFactory<V extends NumberVector<?>,KNNQueryFilteredPCAIndex<V extends NumberVector<?>>>
instantiate
in interface FilteredLocalPCAIndex.Factory<V extends NumberVector<?>,KNNQueryFilteredPCAIndex<V extends NumberVector<?>>>
instantiate
in interface LocalProjectionIndex.Factory<V extends NumberVector<?>,KNNQueryFilteredPCAIndex<V extends NumberVector<?>>>
instantiate
in class AbstractFilteredPCAIndex.Factory<V extends NumberVector<?>,KNNQueryFilteredPCAIndex<V extends NumberVector<?>>>
relation
- Relation to use