Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.varianceanalysis
Class GlobalPCA<O extends RealVector<O,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
          extended by de.lmu.ifi.dbs.elki.varianceanalysis.AbstractPCA
              extended by 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

Field Summary
private  Matrix covarianceMatrix
          Holds the covariance matrix.
 
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
optionHandler
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug
 
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.varianceanalysis.AbstractPCA
determineEigenPairs, getAttributeSettings, getEigenvalues, getEigenvectors, getStrongEigenvalues, getStrongEigenvectors, getWeakEigenvalues, getWeakEigenvectors, setParameters
 
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
 
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable
checkGlobalParameterConstraints, description, getParameters, getPossibleOptions, inlineDescription
 

Field Detail

covarianceMatrix

private Matrix covarianceMatrix
Holds the covariance matrix.

Constructor Detail

GlobalPCA

public GlobalPCA()
Computes the principal components for vector objects of a given database.

Method Detail

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

Release 0.1 (2008-07-10_1838)