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.
|
storage
relation
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(DBID id,
List<DistanceResultPair<D>> neighbors,
Relation<NV> relation)
This method implements the type of variance analysis to be computed for a
given point.
|
P |
getLocalProjection(DBID objid)
Get the precomputed local subspace for a particular object ID.
|
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 DistanceFunction<NV extends NumberVector<?,?>,D extends Distance<D>> rangeQueryDistanceFunction
protected int minpts
protected void preprocess()
public P getLocalProjection(DBID objid)
SubspaceProjectionIndex
getLocalProjection
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(DBID id, List<DistanceResultPair<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