de.lmu.ifi.dbs.elki.math.linearalgebra.pca
Class StandardCovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.math.linearalgebra.pca.AbstractCovarianceMatrixBuilder<V>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardCovarianceMatrixBuilder
public StandardCovarianceMatrixBuilder()
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 idsdatabase - the database used
- Returns:
- Covariance Matrix