|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.math.linearalgebra.pca.PCARunner<V,D>
V - Vector typeD - Distance typepublic class PCARunner<V extends NumberVector<V,?>,D extends NumberDistance<D,?>>
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)
| Field Summary | |
|---|---|
private ObjectParameter<CovarianceMatrixBuilder<V,D>> |
COVARIANCE_PARAM
Parameter to specify the class to compute the covariance matrix, must be a subclass of CovarianceMatrixBuilder. |
protected CovarianceMatrixBuilder<V,D> |
covarianceMatrixBuilder
The covariance computation class. |
static OptionID |
PCA_COVARIANCE_MATRIX
OptionID for COVARIANCE_PARAM |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
PCARunner(Parameterization config)
Constructor, adhering to Parameterizable |
|
| Method Summary | |
|---|---|
CovarianceMatrixBuilder<V,D> |
getCovarianceMatrixBuilder()
Get covariance matrix builder |
PCAResult |
processCovarMatrix(Matrix covarMatrix)
Process an existing covariance Matrix |
PCAResult |
processDatabase(Database<V> database)
Run PCA on the complete database |
PCAResult |
processEVD(EigenvalueDecomposition evd)
Process an existing eigenvalue decomposition |
PCAResult |
processIds(Collection<Integer> ids,
Database<V> database)
Run PCA on a collection of database IDs |
PCAResult |
processQueryResult(Collection<DistanceResultPair<D>> results,
Database<V> database)
Run PCA on a QueryResult Collection |
void |
setCovarianceMatrixBuilder(CovarianceMatrixBuilder<V,D> covarianceBuilder)
Set covariance matrix builder. |
| 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_COVARIANCE_MATRIX
COVARIANCE_PARAM
private ObjectParameter<CovarianceMatrixBuilder<V extends NumberVector<V,?>,D extends NumberDistance<D,?>>> COVARIANCE_PARAM
CovarianceMatrixBuilder.
Default value: CovarianceMatrixBuilder
Key: -pca.covariance
protected CovarianceMatrixBuilder<V extends NumberVector<V,?>,D extends NumberDistance<D,?>> covarianceMatrixBuilder
| Constructor Detail |
|---|
public PCARunner(Parameterization config)
Parameterizable
config - Parameterization| Method Detail |
|---|
public PCAResult processDatabase(Database<V> database)
database - the database used
public PCAResult processIds(Collection<Integer> ids,
Database<V> database)
ids - a collection of idsdatabase - the database used
public PCAResult processQueryResult(Collection<DistanceResultPair<D>> results,
Database<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,D> getCovarianceMatrixBuilder()
public void setCovarianceMatrixBuilder(CovarianceMatrixBuilder<V,D> covarianceBuilder)
covarianceBuilder - New covariance matrix builder.
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||