public class PCARunner extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PCARunner.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
protected CovarianceMatrixBuilder |
covarianceMatrixBuilder
The covariance computation class.
|
static OptionID |
PCA_COVARIANCE_MATRIX
Parameter to specify the class to compute the covariance matrix, must be a
subclass of
CovarianceMatrixBuilder . |
Constructor and Description |
---|
PCARunner(CovarianceMatrixBuilder covarianceMatrixBuilder)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CovarianceMatrixBuilder |
getCovarianceMatrixBuilder()
Get covariance matrix builder.
|
PCAResult |
processCovarMatrix(Matrix covarMatrix)
Process an existing covariance Matrix.
|
PCAResult |
processDatabase(Relation<? extends NumberVector> database)
Run PCA on the complete database.
|
PCAResult |
processEVD(EigenvalueDecomposition evd)
Process an existing eigenvalue decomposition.
|
PCAResult |
processIds(DBIDs ids,
Relation<? extends NumberVector> database)
Run PCA on a collection of database IDs.
|
PCAResult |
processQueryResult(DoubleDBIDList results,
Relation<? extends NumberVector> database)
Run PCA on a QueryResult Collection.
|
void |
setCovarianceMatrixBuilder(CovarianceMatrixBuilder covarianceBuilder)
Set covariance matrix builder.
|
public static final OptionID PCA_COVARIANCE_MATRIX
CovarianceMatrixBuilder
.
Default value: CovarianceMatrixBuilder
Key: -pca.covariance
protected CovarianceMatrixBuilder covarianceMatrixBuilder
public PCARunner(CovarianceMatrixBuilder covarianceMatrixBuilder)
covarianceMatrixBuilder
- Class for computing the covariance matrixpublic PCAResult processDatabase(Relation<? extends NumberVector> database)
database
- the database usedpublic PCAResult processIds(DBIDs ids, Relation<? extends NumberVector> database)
ids
- a collection of idsdatabase
- the database usedpublic PCAResult processQueryResult(DoubleDBIDList results, Relation<? extends NumberVector> database)
results
- a collection of QueryResultsdatabase
- the database usedpublic PCAResult processCovarMatrix(Matrix covarMatrix)
covarMatrix
- the matrix used for performing pcapublic PCAResult processEVD(EigenvalueDecomposition evd)
evd
- eigenvalue decomposition to usepublic CovarianceMatrixBuilder getCovarianceMatrixBuilder()
public void setCovarianceMatrixBuilder(CovarianceMatrixBuilder covarianceBuilder)
covarianceBuilder
- New covariance matrix builder.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.