
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 AbstractPreprocessorIndex<NV,PCAFilteredResult> implements FilteredLocalPCAIndex<NV>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractFilteredPCAIndex.Factory<NV extends NumberVector<?>,I extends AbstractFilteredPCAIndex<NV>>
Factory class.
|
| Modifier and Type | Field and Description |
|---|---|
protected PCAFilteredRunner<NV> |
pca
PCA utility object.
|
storagerelation| 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 DistanceDBIDResult<DoubleDistance> |
objectsForPCA(DBIDRef id)
Returns the objects to be considered within the PCA for the specified query
object.
|
protected void |
preprocess()
Preprocessing step.
|
getLoggerdelete, deleteAll, getLongName, getPageFileStatistics, getShortName, insert, insertAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, deleteAll, getPageFileStatistics, insert, insertAllgetLongName, getShortNameprotected final PCAFilteredRunner<NV extends NumberVector<?>> pca
public AbstractFilteredPCAIndex(Relation<NV> relation, PCAFilteredRunner<NV> pca)
relation - Relation to usepca - PCA runner to useprotected void preprocess()
public PCAFilteredResult getLocalProjection(DBIDRef objid)
FilteredLocalPCAIndexgetLocalProjection in interface FilteredLocalPCAIndex<NV extends NumberVector<?>>getLocalProjection in interface LocalProjectionIndex<NV extends NumberVector<?>,PCAFilteredResult>objid - Object IDprotected abstract DistanceDBIDResult<DoubleDistance> objectsForPCA(DBIDRef id)
id - the id of the query object for which a PCA should be performed