Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

de.lmu.ifi.dbs.elki.math.linearalgebra.pca
Class StandardCovarianceMatrixBuilder<V extends NumberVector<V,?>,D extends NumberDistance<D,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.logging.AbstractLoggable
      extended by de.lmu.ifi.dbs.elki.math.linearalgebra.pca.CovarianceMatrixBuilder<V,D>
          extended by de.lmu.ifi.dbs.elki.math.linearalgebra.pca.StandardCovarianceMatrixBuilder<V,D>
Type Parameters:
V - Vector class to use.
D - Distance type
All Implemented Interfaces:
Parameterizable

public class StandardCovarianceMatrixBuilder<V extends NumberVector<V,?>,D extends NumberDistance<D,?>>
extends CovarianceMatrixBuilder<V,D>

Class for building a "traditional" covariance matrix. Reasonable default choice for a CovarianceMatrixBuilder

Author:
Erich Schubert

Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
StandardCovarianceMatrixBuilder()
           
 
Method Summary
 Matrix processDatabase(Database<V> database)
          Compute Covariance Matrix for a complete database
 Matrix processIds(Collection<Integer> ids, Database<V> database)
          Compute Covariance Matrix for a collection of database IDs
 
Methods inherited from class de.lmu.ifi.dbs.elki.math.linearalgebra.pca.CovarianceMatrixBuilder
processQueryResults, processQueryResults
 
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
 

Constructor Detail

StandardCovarianceMatrixBuilder

public StandardCovarianceMatrixBuilder()
Method Detail

processDatabase

public Matrix processDatabase(Database<V> database)
Compute Covariance Matrix for a complete database

Overrides:
processDatabase in class CovarianceMatrixBuilder<V extends NumberVector<V,?>,D extends NumberDistance<D,?>>
Parameters:
database - the database used
Returns:
Covariance Matrix

processIds

public Matrix processIds(Collection<Integer> ids,
                         Database<V> database)
Compute Covariance Matrix for a collection of database IDs

Specified by:
processIds in class CovarianceMatrixBuilder<V extends NumberVector<V,?>,D extends NumberDistance<D,?>>
Parameters:
ids - a collection of ids
database - the database used
Returns:
Covariance Matrix

Release 0.3 (2010-03-31_1612)