|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.logging.AbstractLoggable de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable de.lmu.ifi.dbs.elki.math.linearalgebra.pca.PCARunner<V,D> de.lmu.ifi.dbs.elki.math.linearalgebra.pca.PCAFilteredRunner<V,D>
V
- Vector class to usepublic class PCAFilteredRunner<V extends RealVector<V,?>,D extends NumberDistance<D,?>>
PCA runner that will do dimensionality reduction.
PCA is computed as with the regular runner, but afterwards, an
EigenPairFilter
is applied.
Field Summary | |
---|---|
private double |
big
Holds the value of BIG_PARAM . |
static OptionID |
BIG_ID
OptionID for BIG_PARAM |
private DoubleParameter |
BIG_PARAM
Parameter to specify a constant big value to reset high eigenvalues, must be a double greater than 0. |
private ClassParameter<EigenPairFilter> |
EIGENPAIR_FILTER_PARAM
Parameter to specify the filter for determination of the strong and weak eigenvectors, must be a subclass of EigenPairFilter . |
private EigenPairFilter |
eigenPairFilter
Holds the instance of the EigenPairFilter specified by EIGENPAIR_FILTER_PARAM . |
static OptionID |
PCA_EIGENPAIR_FILTER
OptionID for EIGENPAIR_FILTER_PARAM |
private double |
small
Holds the value of SMALL_PARAM . |
static OptionID |
SMALL_ID
OptionID for SMALL_PARAM |
private DoubleParameter |
SMALL_PARAM
Parameter to specify a constant small value to reset low eigenvalues, must be a double greater than 0. |
Fields inherited from class de.lmu.ifi.dbs.elki.math.linearalgebra.pca.PCARunner |
---|
covarianceMatrixBuilder, PCA_COVARIANCE_MATRIX |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
optionHandler |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Constructor Summary | |
---|---|
PCAFilteredRunner()
Initialize class with parameters |
Method Summary | |
---|---|
protected EigenPairFilter |
getEigenPairFilter()
Retrieve the EigenPairFilter to be used. |
PCAFilteredResult |
processCovarMatrix(Matrix covarMatrix)
Process an existing Covariance Matrix |
PCAFilteredResult |
processEVD(EigenvalueDecomposition evd)
Process an existing eigenvalue decomposition |
PCAFilteredResult |
processIds(Collection<Integer> ids,
Database<V> database)
Run PCA on a collection of database IDs |
PCAFilteredResult |
processQueryResult(Collection<DistanceResultPair<D>> results,
Database<V> database)
Run PCA on a QueryResult Collection |
List<String> |
setParameters(List<String> args)
Set Parameters. |
Methods inherited from class de.lmu.ifi.dbs.elki.math.linearalgebra.pca.PCARunner |
---|
getCovarianceMatrixBuilder, processDatabase, setCovarianceMatrixBuilder |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
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 OptionID PCA_EIGENPAIR_FILTER
EIGENPAIR_FILTER_PARAM
private ClassParameter<EigenPairFilter> EIGENPAIR_FILTER_PARAM
EigenPairFilter
. Default
value: PercentageEigenPairFilter
Key: -pca.filter
private EigenPairFilter eigenPairFilter
EIGENPAIR_FILTER_PARAM
.
public static final OptionID BIG_ID
BIG_PARAM
public static final OptionID SMALL_ID
SMALL_PARAM
private final DoubleParameter BIG_PARAM
Default value: 1.0
Key: -localpca.big
private final DoubleParameter SMALL_PARAM
Default value: 0.0
Key: -localpca.small
private double big
BIG_PARAM
.
private double small
SMALL_PARAM
.
Constructor Detail |
---|
public PCAFilteredRunner()
Method Detail |
---|
public List<String> setParameters(List<String> args) throws ParameterException
setParameters
in interface Parameterizable
setParameters
in class PCARunner<V extends RealVector<V,?>,D extends NumberDistance<D,?>>
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingpublic PCAFilteredResult processIds(Collection<Integer> ids, Database<V> database)
processIds
in class PCARunner<V extends RealVector<V,?>,D extends NumberDistance<D,?>>
ids
- a collection of idsdatabase
- the database used
public PCAFilteredResult processQueryResult(Collection<DistanceResultPair<D>> results, Database<V> database)
processQueryResult
in class PCARunner<V extends RealVector<V,?>,D extends NumberDistance<D,?>>
results
- a collection of QueryResultsdatabase
- the database used
public PCAFilteredResult processCovarMatrix(Matrix covarMatrix)
processCovarMatrix
in class PCARunner<V extends RealVector<V,?>,D extends NumberDistance<D,?>>
covarMatrix
- the matrix used for performing PCA
public PCAFilteredResult processEVD(EigenvalueDecomposition evd)
processEVD
in class PCARunner<V extends RealVector<V,?>,D extends NumberDistance<D,?>>
evd
- eigenvalue decomposition to use
protected EigenPairFilter getEigenPairFilter()
EigenPairFilter
to be used. For derived PCA Runners
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |