NV
- Vector type@Title(value="Local PCA Preprocessor") @Description(value="Materializes the local PCA and the locally weighted matrix of objects of a database.") public abstract class AbstractFilteredPCAIndex<NV extends NumberVector<? extends NV,?>> extends AbstractPreprocessorIndex<NV,PCAFilteredResult> implements FilteredLocalPCAIndex<NV>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractFilteredPCAIndex.Factory<NV extends NumberVector<NV,?>,I extends AbstractFilteredPCAIndex<NV>>
Factory class
|
Modifier and Type | Field and Description |
---|---|
protected PCAFilteredRunner<NV> |
pca
PCA utility object.
|
storage
relation
Constructor and Description |
---|
AbstractFilteredPCAIndex(Relation<NV> relation,
PCAFilteredRunner<NV> pca)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PCAFilteredResult |
getLocalProjection(DBIDRef objid)
Get the precomputed local PCA for a particular object ID.
|
protected abstract Collection<DistanceResultPair<DoubleDistance>> |
objectsForPCA(DBID id)
Returns the objects to be considered within the PCA for the specified query
object.
|
protected void |
preprocess()
Preprocessing step.
|
getLogger
delete, deleteAll, getLongName, getPageFileStatistics, getShortName, insert, insertAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, deleteAll, getPageFileStatistics, insert, insertAll
getLongName, getShortName
protected final PCAFilteredRunner<NV extends NumberVector<? extends NV,?>> pca
public AbstractFilteredPCAIndex(Relation<NV> relation, PCAFilteredRunner<NV> pca)
relation
- Relation to usepca
- PCA runner to useprotected void preprocess()
public PCAFilteredResult getLocalProjection(DBIDRef objid)
FilteredLocalPCAIndex
getLocalProjection
in interface FilteredLocalPCAIndex<NV extends NumberVector<? extends NV,?>>
getLocalProjection
in interface LocalProjectionIndex<NV extends NumberVector<? extends NV,?>,PCAFilteredResult>
objid
- Object IDprotected abstract Collection<DistanceResultPair<DoubleDistance>> objectsForPCA(DBID id)
id
- the id of the query object for which a PCA should be performed