@Title(value="First n Eigenpair filter") @Description(value="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
Modifier and Type | Class and Description |
---|---|
static class |
FirstNEigenPairFilter.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private int |
n
The threshold for strong eigenvectors: n eigenvectors with the n highest
eigenvalues are marked as strong eigenvectors.
|
PCA_EIGENPAIR_FILTER
Constructor and Description |
---|
FirstNEigenPairFilter(int n)
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.
|
private int n
public FirstNEigenPairFilter(int n)
n
- 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.