Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

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.math.linearalgebra.pca.CovarianceMatrixBuilder<V,D>
Type Parameters:
V - Vector class in use
All Implemented Interfaces:
Parameterizable
Direct Known Subclasses:
KernelCovarianceMatrixBuilder, StandardCovarianceMatrixBuilder, WeightedCovarianceMatrixBuilder

public abstract class CovarianceMatrixBuilder<V extends RealVector<V,?>,D extends NumberDistance<D,?>>
extends AbstractParameterizable

Abstract class with the task of computing a Covariance matrix to be used in PCA. Mostly the specification of an interface.

Author:
Erich Schubert

Field Summary
 
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, logger
 
Constructor Summary
CovarianceMatrixBuilder()
           
 
Method Summary
 Matrix processDatabase(Database<V> database)
          Compute Covariance Matrix for a complete database
abstract  Matrix processIds(Collection<Integer> ids, Database<V> database)
          Compute Covariance Matrix for a collection of database IDs
 Matrix processQueryResults(Collection<DistanceResultPair<D>> results, Database<V> database)
          Compute Covariance Matrix for a QueryResult Collection By default it will just collect the ids and run processIds
 Matrix processQueryResults(Collection<DistanceResultPair<D>> results, Database<V> database, int k)
          Compute Covariance Matrix for a QueryResult Collection By default it will just collect the ids and run processIds
 
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, setParameters, shortDescription
 
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

CovarianceMatrixBuilder

public CovarianceMatrixBuilder()
Method Detail

processDatabase

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

Parameters:
database - the database used
Returns:
Covariance Matrix

processIds

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

Parameters:
ids - a collection of ids
database - the database used
Returns:
Covariance Matrix

processQueryResults

public Matrix processQueryResults(Collection<DistanceResultPair<D>> results,
                                  Database<V> database,
                                  int k)
Compute Covariance Matrix for a QueryResult Collection By default it will just collect the ids and run processIds

Parameters:
results - a collection of QueryResults
database - the database used
k - the number of entries to process
Returns:
Covariance Matrix

processQueryResults

public final Matrix processQueryResults(Collection<DistanceResultPair<D>> results,
                                        Database<V> database)
Compute Covariance Matrix for a QueryResult Collection By default it will just collect the ids and run processIds

Parameters:
results - a collection of QueryResults
database - the database used
Returns:
Covariance Matrix

Release 0.2.1 (2009-07-13_1605)