V
- Vector class in usepublic abstract class AbstractCovarianceMatrixBuilder<V extends NumberVector<?>> extends Object implements Parameterizable, CovarianceMatrixBuilder<V>
Constructor and Description |
---|
AbstractCovarianceMatrixBuilder() |
Modifier and Type | Method and Description |
---|---|
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.
|
<D extends NumberDistance<D,?>> |
processQueryResults(DistanceDBIDList<D> results,
Relation<? extends V> database)
Compute Covariance Matrix for a QueryResult Collection.
|
<D extends NumberDistance<D,?>> |
processQueryResults(DistanceDBIDList<D> results,
Relation<? extends V> database,
int k)
Compute Covariance Matrix for a QueryResult Collection.
|
public Matrix processDatabase(Relation<? extends V> database)
CovarianceMatrixBuilder
processDatabase
in interface CovarianceMatrixBuilder<V extends NumberVector<?>>
database
- the database usedpublic abstract Matrix processIds(DBIDs ids, Relation<? extends V> database)
CovarianceMatrixBuilder
processIds
in interface CovarianceMatrixBuilder<V extends NumberVector<?>>
ids
- a collection of idsdatabase
- the database usedpublic <D extends NumberDistance<D,?>> Matrix processQueryResults(DistanceDBIDList<D> results, Relation<? extends V> database, int k)
CovarianceMatrixBuilder
processQueryResults
in interface CovarianceMatrixBuilder<V extends NumberVector<?>>
D
- distance typeresults
- a collection of QueryResultsdatabase
- the database usedk
- the number of entries to processpublic final <D extends NumberDistance<D,?>> Matrix processQueryResults(DistanceDBIDList<D> results, Relation<? extends V> database)
CovarianceMatrixBuilder
processQueryResults
in interface CovarianceMatrixBuilder<V extends NumberVector<?>>
D
- distance typeresults
- a collection of QueryResultsdatabase
- the database used