V
- Vector class in usepublic abstract class AbstractCovarianceMatrixBuilder<V extends NumberVector<? extends V,?>> 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<?,?>> |
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<?,?>> |
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
|
public Matrix processDatabase(Relation<? extends V> database)
CovarianceMatrixBuilder
processDatabase
in interface CovarianceMatrixBuilder<V extends NumberVector<? extends V,?>>
database
- the database usedpublic 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 usedpublic <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 processpublic 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