public class PCARunner
extends java.lang.Object
The various methods will start PCA at different places (e.g. with database IDs, database query results, a precomputed covariance matrix or eigenvalue decomposition).
The runner can be parameterized by setting a covariance matrix builder (e.g. to a weighted covariance matrix builder)
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.
|
Constructor and Description |
---|
PCARunner(CovarianceMatrixBuilder covarianceMatrixBuilder)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CovarianceMatrixBuilder |
getCovarianceMatrixBuilder()
Get covariance matrix builder.
|
PCAResult |
processCovarMatrix(double[][] covarMatrix)
Process an existing covariance Matrix.
|
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.
|
protected CovarianceMatrixBuilder covarianceMatrixBuilder
public PCARunner(CovarianceMatrixBuilder covarianceMatrixBuilder)
covarianceMatrixBuilder
- Class for computing the covariance matrixpublic 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(double[][] 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 © 2019 ELKI Development Team. License information.