de.lmu.ifi.dbs.elki.preprocessing
Class RangeQueryBasedLocalPCAPreprocessor<V extends NumberVector<V,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.preprocessing.LocalPCAPreprocessor<V>
de.lmu.ifi.dbs.elki.preprocessing.RangeQueryBasedLocalPCAPreprocessor<V>
- Type Parameters:
V
- the type of NumberVector handled by this Preprocessor
- All Implemented Interfaces:
- Preprocessor<V>, Parameterizable
@Title(value="Range Query Based Local PCA Preprocessor")
@Description(value="Materializes the local PCA and the locally weighted matrix of objects of a database. The PCA is based on epsilon range queries.")
public class RangeQueryBasedLocalPCAPreprocessor<V extends NumberVector<V,?>>
- extends LocalPCAPreprocessor<V>
- implements Parameterizable
Provides the local neighborhood to be considered in the PCA as the neighbors
within an epsilon range query of an object.
- Author:
- Elke Achtert
- See Also:
LocalPCAPreprocessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EPSILON_ID
public static final OptionID EPSILON_ID
- OptionID for
EPSILON_PARAM
EPSILON_PARAM
protected final DistanceParameter<DoubleDistance> EPSILON_PARAM
- Parameter to specify the maximum radius of the neighborhood to be
considered in the PCA, must be suitable to the distance function specified.
Key:
-localpca.epsilon
epsilon
protected DoubleDistance epsilon
- Holds the value of
EPSILON_PARAM
.
RangeQueryBasedLocalPCAPreprocessor
public RangeQueryBasedLocalPCAPreprocessor(Parameterization config)
- Constructor, adhering to
Parameterizable
- Parameters:
config
- Parameterization
objectsForPCA
protected List<DistanceResultPair<DoubleDistance>> objectsForPCA(Integer id,
Database<V> database)
- Description copied from class:
LocalPCAPreprocessor
- Returns the objects to be considered within the PCA for the specified query
object.
- Specified by:
objectsForPCA
in class LocalPCAPreprocessor<V extends NumberVector<V,?>>
- Parameters:
id
- the id of the query object for which a PCA should be performeddatabase
- the database holding the objects
- Returns:
- the list of the objects (i.e. the ids and the distances to the
query object) to be considered within the PCA