de.lmu.ifi.dbs.elki.index.preprocessed.subspaceproj
Class FourCSubspaceIndex<V extends NumberVector<V,?>,D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.index.AbstractIndex<O>
de.lmu.ifi.dbs.elki.index.preprocessed.AbstractPreprocessorIndex<NV,P>
de.lmu.ifi.dbs.elki.index.preprocessed.subspaceproj.AbstractSubspaceProjectionIndex<V,D,PCAFilteredResult>
de.lmu.ifi.dbs.elki.index.preprocessed.subspaceproj.FourCSubspaceIndex<V,D>
- Type Parameters:
V
- Vector typeD
- Distance type
- All Implemented Interfaces:
- Index, LocalProjectionIndex<V,PCAFilteredResult>, SubspaceProjectionIndex<V,PCAFilteredResult>, Result
@Title(value="4C Preprocessor")
@Description(value="Computes the local dimensionality and locally weighted matrix of objects of a certain database according to the 4C algorithm.\nThe PCA is based on epsilon range queries.")
public class FourCSubspaceIndex<V extends NumberVector<V,?>,D extends Distance<D>>
- extends AbstractSubspaceProjectionIndex<V,D,PCAFilteredResult>
Preprocessor for 4C local dimensionality and locally weighted matrix
assignment to objects of a certain database.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private static final Logging logger
- Our logger
pca
private PCAFilteredRunner<V extends NumberVector<V,?>> pca
- The Filtered PCA Runner
FourCSubspaceIndex
public FourCSubspaceIndex(Relation<V> relation,
D epsilon,
DistanceFunction<V,D> rangeQueryDistanceFunction,
int minpts,
PCAFilteredRunner<V> pca)
- Full constructor.
- Parameters:
relation
- Relationepsilon
- Epsilon valuerangeQueryDistanceFunction
- minpts
- MinPts valuepca
- PCA runner
computeProjection
protected PCAFilteredResult computeProjection(DBID id,
List<DistanceResultPair<D>> neighbors,
Relation<V> database)
- Description copied from class:
AbstractSubspaceProjectionIndex
- This method implements the type of variance analysis to be computed for a
given point.
Example1: for 4C, this method should implement a PCA for the given point.
Example2: for PreDeCon, this method should implement a simple axis-parallel
variance analysis.
- Specified by:
computeProjection
in class AbstractSubspaceProjectionIndex<V extends NumberVector<V,?>,D extends Distance<D>,PCAFilteredResult>
- Parameters:
id
- the given pointneighbors
- the neighbors as query results of the given pointdatabase
- the database for which the preprocessing is performed
- Returns:
- local subspace projection
getLogger
protected Logging getLogger()
- Description copied from class:
AbstractPreprocessorIndex
- Get the classes static logger.
- Specified by:
getLogger
in class AbstractPreprocessorIndex<V extends NumberVector<V,?>,PCAFilteredResult>
- Returns:
- Logger
getLongName
public String getLongName()
- Description copied from interface:
Result
- A "pretty" name for the result, for use in titles, captions and menus.
- Specified by:
getLongName
in interface Result
- Specified by:
getLongName
in class AbstractIndex<V extends NumberVector<V,?>>
- Returns:
- result name
getShortName
public String getShortName()
- Description copied from interface:
Result
- A short name for the result, useful for file names.
- Specified by:
getShortName
in interface Result
- Specified by:
getShortName
in class AbstractIndex<V extends NumberVector<V,?>>
- Returns:
- result name