|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.preprocessing.LocalPCAPreprocessor<V>
V
- the type of NumberVector handled by this Preprocessor@Title(value="Local PCA Preprocessor") @Description(value="Materializes the local PCA and the locally weighted matrix of objects of a database.") public abstract class LocalPCAPreprocessor<V extends NumberVector<V,?>>
Abstract superclass for preprocessors performing for each object of a certain
database a filtered PCA based on the local neighborhood of the object. The
result of the PCA is assigned to the database with association id
AssociationID.LOCAL_PCA
. Additionally, a copy of the PCAs similarity
matrix is assigned with association id
AssociationID.LOCALLY_WEIGHTED_MATRIX
.
Field Summary | |
---|---|
static Class<?> |
DEFAULT_PCA_DISTANCE_FUNCTION
The default distance function for the PCA. |
private PCAFilteredRunner<V,DoubleDistance> |
pca
PCA utility object. |
static OptionID |
PCA_DISTANCE_ID
OptionID for PCA_DISTANCE_PARAM |
protected ObjectParameter<DistanceFunction<V,DoubleDistance>> |
PCA_DISTANCE_PARAM
Parameter to specify the distance function used for running PCA. |
protected DistanceFunction<V,DoubleDistance> |
pcaDistanceFunction
Holds the instance of the distance function specified by PCA_DISTANCE_PARAM . |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Constructor Summary | |
---|---|
LocalPCAPreprocessor(Parameterization config)
Constructor, adhering to Parameterizable |
Method Summary | |
---|---|
protected abstract List<DistanceResultPair<DoubleDistance>> |
objectsForPCA(Integer id,
Database<V> database)
Returns the objects to be considered within the PCA for the specified query object. |
void |
run(Database<V> database,
boolean verbose,
boolean time)
Performs for each object of the specified database a filtered PCA based on the local neighborhood of the object. |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Class<?> DEFAULT_PCA_DISTANCE_FUNCTION
public static final OptionID PCA_DISTANCE_ID
PCA_DISTANCE_PARAM
protected final ObjectParameter<DistanceFunction<V extends NumberVector<V,?>,DoubleDistance>> PCA_DISTANCE_PARAM
-localpca.distancefunction
protected DistanceFunction<V extends NumberVector<V,?>,DoubleDistance> pcaDistanceFunction
PCA_DISTANCE_PARAM
.
private PCAFilteredRunner<V extends NumberVector<V,?>,DoubleDistance> pca
Constructor Detail |
---|
public LocalPCAPreprocessor(Parameterization config)
Parameterizable
config
- ParameterizationMethod Detail |
---|
public void run(Database<V> database, boolean verbose, boolean time)
AssociationID.LOCAL_PCA
.
Additionally, a copy of the PCAs similarity matrix is assigned with
association id AssociationID.LOCALLY_WEIGHTED_MATRIX
.
run
in interface Preprocessor<V extends NumberVector<V,?>>
database
- the database for which the preprocessing is performedverbose
- flag to allow verbose messages while performing the
algorithmtime
- flag to request output of performance timeprotected abstract List<DistanceResultPair<DoubleDistance>> objectsForPCA(Integer id, Database<V> database)
id
- the id of the query object for which a PCA should be performeddatabase
- the database holding the objects
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |