|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.math.linearalgebra.pca.PCARunner<V>
V - Vector typepublic class PCARunner<V extends NumberVector<? extends V,?>>

Class to run PCA on given data. 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)
| Nested Class Summary | |
|---|---|
static class |
PCARunner.Parameterizer<V extends NumberVector<? extends V,?>>
Parameterization class. |
| Field Summary | |
|---|---|
protected CovarianceMatrixBuilder<V> |
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 Summary | |
|---|---|
PCARunner(CovarianceMatrixBuilder<V> covarianceMatrixBuilder)
Constructor. |
|
| Method Summary | ||
|---|---|---|
CovarianceMatrixBuilder<V> |
getCovarianceMatrixBuilder()
Get covariance matrix builder |
|
PCAResult |
processCovarMatrix(Matrix covarMatrix)
Process an existing covariance Matrix |
|
PCAResult |
processDatabase(Relation<? extends V> database)
Run PCA on the complete database |
|
PCAResult |
processEVD(EigenvalueDecomposition evd)
Process an existing eigenvalue decomposition |
|
PCAResult |
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 |
|
void |
setCovarianceMatrixBuilder(CovarianceMatrixBuilder<V> covarianceBuilder)
Set covariance matrix builder. |
|
| 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_COVARIANCE_MATRIX
CovarianceMatrixBuilder.
Default value: CovarianceMatrixBuilder
Key: -pca.covariance
protected CovarianceMatrixBuilder<V extends NumberVector<? extends V,?>> covarianceMatrixBuilder
| Constructor Detail |
|---|
public PCARunner(CovarianceMatrixBuilder<V> covarianceMatrixBuilder)
covarianceMatrixBuilder - Class for computing the covariance matrix| Method Detail |
|---|
public PCAResult processDatabase(Relation<? extends V> database)
database - the database used
public PCAResult processIds(DBIDs ids,
Relation<? extends V> database)
ids - a collection of idsdatabase - the database used
public <D extends NumberDistance<?,?>> PCAResult processQueryResult(Collection<DistanceResultPair<D>> results,
Relation<? extends V> database)
results - a collection of QueryResultsdatabase - the database used
public PCAResult processCovarMatrix(Matrix covarMatrix)
covarMatrix - the matrix used for performing pca
public PCAResult processEVD(EigenvalueDecomposition evd)
evd - eigenvalue decomposition to use
public CovarianceMatrixBuilder<V> getCovarianceMatrixBuilder()
public void setCovarianceMatrixBuilder(CovarianceMatrixBuilder<V> covarianceBuilder)
covarianceBuilder - New covariance matrix builder.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||