@Title(value="Percentage based Eigenpair filter") @Description(value="Sorts the eigenpairs in decending order of their eigenvalues and returns the first eigenpairs, whose sum of eigenvalues is higher than the given percentage of the sum of all eigenvalues.") public class PercentageEigenPairFilter extends java.lang.Object implements EigenPairFilter
Modifier and Type | Class and Description |
---|---|
static class |
PercentageEigenPairFilter.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private double |
alpha
The threshold for strong eigenvectors: the strong eigenvectors explain a
portion of at least alpha of the total variance.
|
static double |
DEFAULT_ALPHA
The default value for alpha.
|
PCA_EIGENPAIR_FILTER
Constructor and Description |
---|
PercentageEigenPairFilter(double alpha)
Constructor.
|
Modifier and Type | Method and 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.
|
public static final double DEFAULT_ALPHA
private double alpha
public PercentageEigenPairFilter(double alpha)
alpha
- public int filter(double[] eigenValues)
EigenPairFilter
filter
in interface EigenPairFilter
eigenValues
- the array of eigenvalues, must be sorted descendingCopyright © 2019 ELKI Development Team. License information.