V
- Vector typeD
- Distance type@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<?>,D extends Distance<D>> extends AbstractSubspaceProjectionIndex<V,D,PCAFilteredResult>
Modifier and Type | Class and Description |
---|---|
static class |
FourCSubspaceIndex.Factory<V extends NumberVector<?>,D extends Distance<D>>
Factory class for 4C preprocessors.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Our logger
|
private PCAFilteredRunner<V> |
pca
The Filtered PCA Runner
|
epsilon, minpts, rangeQueryDistanceFunction
storage
relation
Constructor and Description |
---|
FourCSubspaceIndex(Relation<V> relation,
D epsilon,
DistanceFunction<V,D> rangeQueryDistanceFunction,
int minpts,
PCAFilteredRunner<V> pca)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
protected PCAFilteredResult |
computeProjection(DBIDRef id,
DistanceDBIDList<D> neighbors,
Relation<V> database)
This method implements the type of variance analysis to be computed for a
given point.
|
protected Logging |
getLogger()
Get the classes static logger.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
String |
getShortName()
A short name for the result, useful for file names.
|
void |
logStatistics()
Send statistics to the logger, if enabled.
|
getLocalProjection, initialize
private static final Logging LOG
private PCAFilteredRunner<V extends NumberVector<?>> pca
public FourCSubspaceIndex(Relation<V> relation, D epsilon, DistanceFunction<V,D> rangeQueryDistanceFunction, int minpts, PCAFilteredRunner<V> pca)
relation
- Relationepsilon
- Epsilon valuerangeQueryDistanceFunction
- minpts
- MinPts valuepca
- PCA runnerprotected PCAFilteredResult computeProjection(DBIDRef id, DistanceDBIDList<D> neighbors, Relation<V> database)
AbstractSubspaceProjectionIndex
computeProjection
in class AbstractSubspaceProjectionIndex<V extends NumberVector<?>,D extends Distance<D>,PCAFilteredResult>
id
- the given pointneighbors
- the neighbors as query results of the given pointdatabase
- the database for which the preprocessing is performedprotected Logging getLogger()
AbstractPreprocessorIndex
getLogger
in class AbstractPreprocessorIndex<V extends NumberVector<?>,PCAFilteredResult>
public String getLongName()
Result
getLongName
in interface Result
getLongName
in class AbstractIndex<V extends NumberVector<?>>
public String getShortName()
Result
getShortName
in interface Result
getShortName
in class AbstractIndex<V extends NumberVector<?>>
public void logStatistics()
Index