@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 Object implements EigenPairFilter
Modifier and Type | Class and Description |
---|---|
static class |
FirstNEigenPairFilter.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
static OptionID |
EIGENPAIR_FILTER_N
Paremeter n
|
private static Logging |
logger
The logger for this class.
|
private int |
n
The threshold for strong eigenvectors: n eigenvectors with the n highest
eigenvalues are marked as strong eigenvectors.
|
Constructor and Description |
---|
FirstNEigenPairFilter(int n)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FilteredEigenPairs |
filter(SortedEigenPairs eigenPairs)
Filters the specified eigenpairs into strong and weak eigenpairs,
where strong eigenpairs having high variances
and weak eigenpairs having small variances.
|
private static final Logging logger
public static final OptionID EIGENPAIR_FILTER_N
private int n
public FirstNEigenPairFilter(int n)
n
- public FilteredEigenPairs filter(SortedEigenPairs eigenPairs)
EigenPairFilter
filter
in interface EigenPairFilter
eigenPairs
- the eigenPairs (i.e. the eigenvectors and