
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 AbstractSubspaceProjectionIndex<NV extends NumberVector<?>,D extends Distance<D>,P extends ProjectionResult> extends AbstractPreprocessorIndex<NV,P> implements SubspaceProjectionIndex<NV,P>
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AbstractSubspaceProjectionIndex.Factory<NV extends NumberVector<?>,D extends Distance<D>,I extends AbstractSubspaceProjectionIndex<NV,D,?>>
Factory class 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected D | 
epsilon
Contains the value of parameter epsilon; 
 | 
protected int | 
minpts
Holds the value of parameter minpts. 
 | 
protected DistanceFunction<NV,D> | 
rangeQueryDistanceFunction
The distance function for the variance analysis. 
 | 
storagerelation| Constructor and Description | 
|---|
AbstractSubspaceProjectionIndex(Relation<NV> relation,
                               D epsilon,
                               DistanceFunction<NV,D> rangeQueryDistanceFunction,
                               int minpts)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract P | 
computeProjection(DBIDRef id,
                 DistanceDBIDList<D> neighbors,
                 Relation<NV> relation)
This method implements the type of variance analysis to be computed for a
 given point. 
 | 
P | 
getLocalProjection(DBIDRef objid)
Get the precomputed local subspace for a particular object ID. 
 | 
void | 
initialize()
Initialize the index. 
 | 
getLoggergetLongName, getShortNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlogStatisticsgetLongName, getShortNameprotected DistanceFunction<NV extends NumberVector<?>,D extends Distance<D>> rangeQueryDistanceFunction
protected int minpts
public void initialize()
Indexinitialize in interface Indexpublic P getLocalProjection(DBIDRef objid)
SubspaceProjectionIndexgetLocalProjection in interface LocalProjectionIndex<NV extends NumberVector<?>,P extends ProjectionResult>getLocalProjection in interface SubspaceProjectionIndex<NV extends NumberVector<?>,P extends ProjectionResult>objid - Object IDprotected abstract P computeProjection(DBIDRef id, DistanceDBIDList<D> neighbors, Relation<NV> relation)
id - the given pointneighbors - the neighbors as query results of the given pointrelation - the database for which the preprocessing is performed