Class FirstNEigenPairFilter
- java.lang.Object
-
- elki.math.linearalgebra.pca.filter.FirstNEigenPairFilter
-
- All Implemented Interfaces:
EigenPairFilter
@Title("First n Eigenpair filter") @Description("Sorts the eigenpairs in decending order of their eigenvalues and marks the first n eigenpairs as strong eigenpairs.") public class FirstNEigenPairFilter extends java.lang.Object implements EigenPairFilter
The FirstNEigenPairFilter marks the n highest eigenpairs as strong eigenpairs, where n is a user specified number.- Since:
- 0.1
- Author:
- Elke Achtert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFirstNEigenPairFilter.ParParameterization class.
-
Field Summary
Fields Modifier and Type Field Description private intnThe threshold for strong eigenvectors: n eigenvectors with the n highest eigenvalues are marked as strong eigenvectors.-
Fields inherited from interface elki.math.linearalgebra.pca.filter.EigenPairFilter
PCA_EIGENPAIR_FILTER
-
-
Constructor Summary
Constructors Constructor Description FirstNEigenPairFilter(int n)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfilter(double[] eigenValues)Filters the specified eigenvalues into strong and weak eigenvalues, where strong eigenvalues have high variance and weak eigenvalues have small variance.
-
-
-
Method Detail
-
filter
public int filter(double[] eigenValues)
Description copied from interface:EigenPairFilterFilters the specified eigenvalues into strong and weak eigenvalues, where strong eigenvalues have high variance and weak eigenvalues have small variance.- Specified by:
filterin interfaceEigenPairFilter- Parameters:
eigenValues- the array of eigenvalues, must be sorted descending- Returns:
- the number of eigenvectors to keep
-
-