de.lmu.ifi.dbs.elki.varianceanalysis
Class GlobalPCA<O extends RealVector<O,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.varianceanalysis.AbstractPCA
de.lmu.ifi.dbs.elki.varianceanalysis.GlobalPCA<O>
- All Implemented Interfaces:
- Loggable, Parameterizable, PCA
public class GlobalPCA<O extends RealVector<O,?>>
- extends AbstractPCA
Computes the principal components for vector objects of a given database.
- Author:
- Elke Achtert
Constructor Summary |
GlobalPCA()
Computes the principal components for vector objects of a given database. |
Method Summary |
Matrix |
getCovarianceMatrix()
Returns the covariance matrix. |
void |
run(Database<O> database)
Computes the principal components for objects of the given database. |
void |
run(Matrix matrix)
Computes the principal components for objects of the given matrix. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
addOption, checkGlobalParameterConstraints, deleteOption, description, description, description, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
covarianceMatrix
private Matrix covarianceMatrix
- Holds the covariance matrix.
GlobalPCA
public GlobalPCA()
- Computes the principal components for vector objects of a given database.
run
public void run(Database<O> database)
- Computes the principal components for objects of the given database.
- Parameters:
database
- the database containing the objects
run
public void run(Matrix matrix)
- Computes the principal components for objects of the given matrix.
- Parameters:
matrix
- the matrix containing the objects as column vectors
getCovarianceMatrix
public Matrix getCovarianceMatrix()
- Returns the covariance matrix.
- Returns:
- the covariance matrix