D
- Distance typeV
- Vector type@Title(value="PreDeCon Preprocessor") @Description(value="Computes the projected dimension of objects of a certain database according to the PreDeCon algorithm.\nThe variance analysis is based on epsilon range queries.") public class PreDeConSubspaceIndex<V extends NumberVector<?>,D extends Distance<D>> extends AbstractSubspaceProjectionIndex<V,D,SubspaceProjectionResult>
Modifier and Type | Class and Description |
---|---|
static class |
PreDeConSubspaceIndex.Factory<V extends NumberVector<?>,D extends Distance<D>>
Factory.
|
Modifier and Type | Field and Description |
---|---|
protected double |
delta
The threshold for small eigenvalues.
|
private int |
kappa
The kappa value for generating the variance vector.
|
private static Logging |
LOG
The logger for this class.
|
epsilon, minpts, rangeQueryDistanceFunction
storage
relation
Constructor and Description |
---|
PreDeConSubspaceIndex(Relation<V> relation,
D epsilon,
DistanceFunction<V,D> rangeQueryDistanceFunction,
int minpts,
double delta)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected SubspaceProjectionResult |
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
protected double delta
private final int kappa
public PreDeConSubspaceIndex(Relation<V> relation, D epsilon, DistanceFunction<V,D> rangeQueryDistanceFunction, int minpts, double delta)
relation
- Relationepsilon
- Epsilon valuerangeQueryDistanceFunction
- range query distanceminpts
- Minpts parameterdelta
- Delta valueprotected SubspaceProjectionResult computeProjection(DBIDRef id, DistanceDBIDList<D> neighbors, Relation<V> database)
AbstractSubspaceProjectionIndex
computeProjection
in class AbstractSubspaceProjectionIndex<V extends NumberVector<?>,D extends Distance<D>,SubspaceProjectionResult>
id
- the given pointneighbors
- the neighbors as query results of the given pointdatabase
- the database for which the preprocessing is performedpublic 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<?>>
protected Logging getLogger()
AbstractPreprocessorIndex
getLogger
in class AbstractPreprocessorIndex<V extends NumberVector<?>,SubspaceProjectionResult>
public void logStatistics()
Index