public static class PrincipalComponentAnalysis.PercentageEnergyComponentSelector extends Object implements PrincipalComponentAnalysis.ComponentSelector
PrincipalComponentAnalysis.ComponentSelector
that selects a subset of the principal
components such that all remaining components have a certain percentage
cumulative energy of the total. The percentage is calculated relative to
the total energy of the eigenvalues.
Bear in mind that if not all the eigenvalues were calculated, or if some
have previously been removed through PrincipalComponentAnalysis.selectSubset(int)
,
PrincipalComponentAnalysis.selectSubsetEnergyThreshold(double)
or
PrincipalComponentAnalysis.selectSubsetPercentageEnergy(double)
, then the percentage
calculation only factors in the remaining eigenvalues that are available
to it.Constructor and Description |
---|
PercentageEnergyComponentSelector(double percentage)
Construct with the given percentage
|
Modifier and Type | Method and Description |
---|---|
void |
select(PrincipalComponentAnalysis pca)
Select a subset of principal components, discarding the ones not
selected
|
public PercentageEnergyComponentSelector(double percentage)
percentage
- percentage of the total cumulative energy to retain
[0..1].public void select(PrincipalComponentAnalysis pca)
PrincipalComponentAnalysis.ComponentSelector
select
in interface PrincipalComponentAnalysis.ComponentSelector