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

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

public class StandardCovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
extends AbstractCovarianceMatrixBuilder<V>

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


Constructor Summary
StandardCovarianceMatrixBuilder()
           
 
Method Summary
 Matrix processDatabase(Relation<? extends V> database)
          Compute Covariance Matrix for a complete database
 Matrix processIds(DBIDs ids, Relation<? extends V> database)
          Compute Covariance Matrix for a collection of database IDs
 
Methods inherited from class de.lmu.ifi.dbs.elki.math.linearalgebra.pca.AbstractCovarianceMatrixBuilder
processQueryResults, processQueryResults
 
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(Relation<? extends V> database)
Compute Covariance Matrix for a complete database

Specified by:
processDatabase in interface CovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
Overrides:
processDatabase in class AbstractCovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
Parameters:
database - the database used
Returns:
Covariance Matrix

processIds

public Matrix processIds(DBIDs ids,
                         Relation<? extends V> database)
Compute Covariance Matrix for a collection of database IDs

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

Release 0.4.0 (2011-09-20_1324)