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

Type Parameters:
V - Vector base type
All Known Implementing Classes:
AbstractCovarianceMatrixBuilder, StandardCovarianceMatrixBuilder, WeightedCovarianceMatrixBuilder

public interface CovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>

Interface for computing covariance matrixes on a data set.


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
<D extends NumberDistance<?,?>>
Matrix
processQueryResults(Collection<DistanceResultPair<D>> results, Relation<? extends V> database)
          Compute Covariance Matrix for a QueryResult Collection By default it will just collect the ids and run processIds
<D extends NumberDistance<?,?>>
Matrix
processQueryResults(Collection<DistanceResultPair<D>> results, Relation<? extends V> database, int k)
          Compute Covariance Matrix for a QueryResult Collection By default it will just collect the ids and run processIds
 

Method Detail

processDatabase

Matrix processDatabase(Relation<? extends V> database)
Compute Covariance Matrix for a complete database

Parameters:
database - the database used
Returns:
Covariance Matrix

processIds

Matrix processIds(DBIDs ids,
                  Relation<? extends 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

<D extends NumberDistance<?,?>> Matrix processQueryResults(Collection<DistanceResultPair<D>> results,
                                                           Relation<? extends 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

<D extends NumberDistance<?,?>> Matrix processQueryResults(Collection<DistanceResultPair<D>> results,
                                                           Relation<? extends 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.4.0 (2011-09-20_1324)