Package elki.math.linearalgebra.pca
Interface CovarianceMatrixBuilder
-
- All Known Implementing Classes:
RANSACCovarianceMatrixBuilder
,StandardCovarianceMatrixBuilder
,WeightedCovarianceMatrixBuilder
public interface CovarianceMatrixBuilder
Interface for computing covariance matrixes on a data set.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description double[][]
processIds(DBIDs ids, Relation<? extends NumberVector> database)
Compute covariance matrix for a collection of database IDs.default double[][]
processQueryResults(DoubleDBIDList results, Relation<? extends NumberVector> database)
Compute covariance matrix for a QueryResult Collection.default double[][]
processQueryResults(DoubleDBIDList results, Relation<? extends NumberVector> database, int k)
Compute covariance matrix for a QueryResult collection.default double[][]
processRelation(Relation<? extends NumberVector> relation)
Compute covariance matrix for a complete relation.
-
-
-
Method Detail
-
processRelation
default double[][] processRelation(Relation<? extends NumberVector> relation)
Compute covariance matrix for a complete relation.- Parameters:
relation
- the relation to run on- Returns:
- covariance matrix
-
processIds
double[][] processIds(DBIDs ids, Relation<? extends NumberVector> database)
Compute covariance matrix for a collection of database IDs.- Parameters:
ids
- a collection of idsdatabase
- the database used- Returns:
- covariance matrix
-
processQueryResults
default double[][] processQueryResults(DoubleDBIDList results, Relation<? extends NumberVector> database, int k)
Compute covariance matrix for a QueryResult collection.By default it will just run processIds, but subclasses may use the distances for weighting.
- Parameters:
results
- a collection of QueryResultsdatabase
- the database usedk
- the number of entries to process- Returns:
- covariance matrix
-
processQueryResults
default double[][] processQueryResults(DoubleDBIDList results, Relation<? extends NumberVector> database)
Compute covariance matrix for a QueryResult Collection.By default it will just collect the ids and run processIds, but subclasses may use the distance for weighting.
- Parameters:
results
- a collection of QueryResultsdatabase
- the database used- Returns:
- covariance matrix
-
-