Class WeakEigenPairFilter
- java.lang.Object
-
- elki.math.linearalgebra.pca.filter.WeakEigenPairFilter
-
- All Implemented Interfaces:
EigenPairFilter
@Title("Weak Eigenpair Filter") @Description("Sorts the eigenpairs in decending order of their eigenvalues and returns those eigenpairs, whose eigenvalue is above the average (\'expected\') eigenvalue.") public class WeakEigenPairFilter extends java.lang.Object implements EigenPairFilter
The WeakEigenPairFilter sorts the eigenpairs in descending order of their eigenvalues and returns the first eigenpairs who are above the average mark as "strong", the others as "weak".- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WeakEigenPairFilter.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description static double
DEFAULT_WALPHA
The default value for walpha.private double
walpha
The noise tolerance level for weak eigenvectors-
Fields inherited from interface elki.math.linearalgebra.pca.filter.EigenPairFilter
PCA_EIGENPAIR_FILTER
-
-
Constructor Summary
Constructors Constructor Description WeakEigenPairFilter(double walpha)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
filter(double[] eigenValues)
Filters the specified eigenvalues into strong and weak eigenvalues, where strong eigenvalues have high variance and weak eigenvalues have small variance.
-
-
-
Field Detail
-
DEFAULT_WALPHA
public static final double DEFAULT_WALPHA
The default value for walpha.- See Also:
- Constant Field Values
-
walpha
private double walpha
The noise tolerance level for weak eigenvectors
-
-
Method Detail
-
filter
public int filter(double[] eigenValues)
Description copied from interface:EigenPairFilter
Filters the specified eigenvalues into strong and weak eigenvalues, where strong eigenvalues have high variance and weak eigenvalues have small variance.- Specified by:
filter
in interfaceEigenPairFilter
- Parameters:
eigenValues
- the array of eigenvalues, must be sorted descending- Returns:
- the number of eigenvectors to keep
-
-