|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.math.linearalgebra.pca.AbstractCovarianceMatrixBuilder<V>
V
- Vector class in usepublic abstract class AbstractCovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
Abstract class with the task of computing a Covariance matrix to be used in PCA. Mostly the specification of an interface.
Constructor Summary | |
---|---|
AbstractCovarianceMatrixBuilder()
|
Method Summary | ||
---|---|---|
Matrix |
processDatabase(Relation<? extends V> database)
Compute Covariance Matrix for a complete database |
|
abstract Matrix |
processIds(DBIDs ids,
Relation<? extends V> database)
Compute Covariance Matrix for a collection of database IDs |
|
|
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 |
|
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCovarianceMatrixBuilder()
Method Detail |
---|
public Matrix processDatabase(Relation<? extends V> database)
CovarianceMatrixBuilder
processDatabase
in interface CovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
database
- the database used
public abstract Matrix processIds(DBIDs ids, Relation<? extends V> database)
CovarianceMatrixBuilder
processIds
in interface CovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
ids
- a collection of idsdatabase
- the database used
public <D extends NumberDistance<?,?>> Matrix processQueryResults(Collection<DistanceResultPair<D>> results, Relation<? extends V> database, int k)
CovarianceMatrixBuilder
processQueryResults
in interface CovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
results
- a collection of QueryResultsdatabase
- the database usedk
- the number of entries to process
public final <D extends NumberDistance<?,?>> Matrix processQueryResults(Collection<DistanceResultPair<D>> results, Relation<? extends V> database)
CovarianceMatrixBuilder
processQueryResults
in interface CovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
results
- a collection of QueryResultsdatabase
- the database used
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |