|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.math.linearalgebra.pca.PCARunner<V> de.lmu.ifi.dbs.elki.math.linearalgebra.pca.PCAFilteredRunner<V>
V
- Vector class to usepublic class PCAFilteredRunner<V extends NumberVector<? extends V,?>>
PCA runner that will do dimensionality reduction. PCA is computed as with the
regular runner, but afterwards, an EigenPairFilter
is applied.
Nested Class Summary | |
---|---|
static class |
PCAFilteredRunner.Parameterizer<V extends NumberVector<? extends V,?>>
Parameterization class. |
Field Summary | |
---|---|
private double |
big
Holds the value of BIG_ID . |
static OptionID |
BIG_ID
Parameter to specify a constant big value to reset high eigenvalues, must be a double greater than 0. |
private EigenPairFilter |
eigenPairFilter
Holds the instance of the EigenPairFilter specified by PCA_EIGENPAIR_FILTER . |
static OptionID |
PCA_EIGENPAIR_FILTER
Parameter to specify the filter for determination of the strong and weak eigenvectors, must be a subclass of EigenPairFilter . |
private double |
small
Holds the value of SMALL_ID . |
static OptionID |
SMALL_ID
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 |
Constructor Summary | |
---|---|
PCAFilteredRunner(CovarianceMatrixBuilder<V> covarianceMatrixBuilder,
EigenPairFilter eigenPairFilter,
double big,
double small)
Constructor. |
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(DBIDs ids,
Relation<? extends V> database)
Run PCA on a collection of database IDs |
|
|
processQueryResult(Collection<DistanceResultPair<D>> results,
Relation<? extends V> database)
Run PCA on a QueryResult Collection |
Methods inherited from class de.lmu.ifi.dbs.elki.math.linearalgebra.pca.PCARunner |
---|
getCovarianceMatrixBuilder, processDatabase, setCovarianceMatrixBuilder |
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
EigenPairFilter
.
Default value: PercentageEigenPairFilter
Key: -pca.filter
public static final OptionID BIG_ID
Default value: 1.0
Key: -pca.big
public static final OptionID SMALL_ID
Default value: 0.0
Key: -pca.small
private EigenPairFilter eigenPairFilter
PCA_EIGENPAIR_FILTER
.
private double big
BIG_ID
.
private double small
SMALL_ID
.
Constructor Detail |
---|
public PCAFilteredRunner(CovarianceMatrixBuilder<V> covarianceMatrixBuilder, EigenPairFilter eigenPairFilter, double big, double small)
covarianceMatrixBuilder
- eigenPairFilter
- big
- small
- Method Detail |
---|
public PCAFilteredResult processIds(DBIDs ids, Relation<? extends V> database)
processIds
in class PCARunner<V extends NumberVector<? extends V,?>>
ids
- a collection of idsdatabase
- the database used
public <D extends NumberDistance<?,?>> PCAFilteredResult processQueryResult(Collection<DistanceResultPair<D>> results, Relation<? extends V> database)
processQueryResult
in class PCARunner<V extends NumberVector<? extends V,?>>
results
- a collection of QueryResultsdatabase
- the database used
public PCAFilteredResult processCovarMatrix(Matrix covarMatrix)
processCovarMatrix
in class PCARunner<V extends NumberVector<? extends V,?>>
covarMatrix
- the matrix used for performing PCA
public PCAFilteredResult processEVD(EigenvalueDecomposition evd)
processEVD
in class PCARunner<V extends NumberVector<? extends V,?>>
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 |