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.
|
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.
|
void |
initialize()
Initialize the index.
|
protected abstract DistanceDBIDList<DoubleDistance> |
objectsForPCA(DBIDRef id)
Returns the objects to be considered within the PCA for the specified query
object.
|
getLogger
getLongName, getShortName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
logStatistics
getLongName, getShortName
protected final PCAFilteredRunner<NV extends NumberVector<?>> pca
public AbstractFilteredPCAIndex(Relation<NV> relation, PCAFilteredRunner<NV> pca)
relation
- Relation to usepca
- PCA runner to usepublic void initialize()
Index
initialize
in interface Index
public PCAFilteredResult getLocalProjection(DBIDRef objid)
FilteredLocalPCAIndex
getLocalProjection
in interface FilteredLocalPCAIndex<NV extends NumberVector<?>>
getLocalProjection
in interface LocalProjectionIndex<NV extends NumberVector<?>,PCAFilteredResult>
objid
- Object IDprotected abstract DistanceDBIDList<DoubleDistance> objectsForPCA(DBIDRef id)
id
- the id of the query object for which a PCA should be performed