|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.varianceanalysis.AbstractPCA
public abstract class AbstractPCA
Abstract super class for pca algorithms. Provides the eigenvalue and eigenvectors.
| Field Summary | |
|---|---|
private ClassParameter<EigenPairFilter> |
EIGENPAIR_FILTER_PARAM
Parameter to specify the filter for determination of the strong and weak eigenvectors, must be a subclass of EigenPairFilter. |
private EigenPairFilter |
eigenPairFilter
The eigenpair filter to determine the strong and weak eigenvectors. |
private double[] |
eigenvalues
The eigenvalues in decreasing order. |
private Matrix |
eigenvectors
The eigenvectors in decreasing order to their corresponding eigenvalues. |
private double[] |
strongEigenvalues
The strong eigenvalues. |
private Matrix |
strongEigenvectors
The strong eigenvectors to their corresponding filtered eigenvalues. |
private double[] |
weakEigenvalues
The weak eigenvalues. |
private Matrix |
weakEigenvectors
The weak eigenvectors to their corresponding filtered eigenvalues. |
| Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
optionHandler |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug |
| Constructor Summary | |
|---|---|
protected |
AbstractPCA()
Provides an abstract super class for pca algorithms. |
| Method Summary | |
|---|---|
protected void |
determineEigenPairs(Matrix pcaMatrix)
Determines the (strong and weak) eigenpairs (i.e. the eigenvectors and their corresponding eigenvalues) sorted in descending order of their eigenvalues of the specified matrix. |
List<AttributeSettings> |
getAttributeSettings()
Returns the settings of all options assigned to the option handler. |
double[] |
getEigenvalues()
Returns a copy of the eigenvalues of the object to which this PCA belongs to in decreasing order. |
Matrix |
getEigenvectors()
Returns a copy of the matrix of eigenvectors of the object to which this PCA belongs to. |
double[] |
getStrongEigenvalues()
Returns a copy of the strong eigenvalues of the object after passing the eigen pair filter. |
Matrix |
getStrongEigenvectors()
Returns a copy of the matrix of strong eigenvectors after passing the eigen pair filter. |
double[] |
getWeakEigenvalues()
Returns a copy of the weak eigenvalues of the object after passing the eigen pair filter. |
Matrix |
getWeakEigenvectors()
Returns a copy of the matrix of weak eigenvectors after passing the eigen pair filter. |
String[] |
setParameters(String[] args)
Sets the attributes of the class accordingly to the given parameters. |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
addOption, checkGlobalParameterConstraints, deleteOption, description, description, description, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
|---|
checkGlobalParameterConstraints, description, getParameters, getPossibleOptions, inlineDescription |
| Field Detail |
|---|
private ClassParameter<EigenPairFilter> EIGENPAIR_FILTER_PARAM
EigenPairFilter.
Default value: PercentageEigenPairFilter
Key: -pca.filter
private EigenPairFilter eigenPairFilter
private double[] eigenvalues
private Matrix eigenvectors
private double[] strongEigenvalues
private Matrix strongEigenvectors
private double[] weakEigenvalues
private Matrix weakEigenvectors
| Constructor Detail |
|---|
protected AbstractPCA()
| Method Detail |
|---|
public final Matrix getEigenvectors()
getEigenvectors in interface PCApublic final double[] getEigenvalues()
getEigenvalues in interface PCApublic final Matrix getStrongEigenvectors()
getStrongEigenvectors in interface PCApublic final double[] getStrongEigenvalues()
getStrongEigenvalues in interface PCApublic Matrix getWeakEigenvectors()
getWeakEigenvectors in interface PCApublic double[] getWeakEigenvalues()
getWeakEigenvalues in interface PCAprotected void determineEigenPairs(Matrix pcaMatrix)
pcaMatrix - the matrix used for performing pca
public String[] setParameters(String[] args)
throws ParameterException
Parameterizable
setParameters in interface ParameterizablesetParameters in class AbstractParameterizableargs - parameters to set the attributes accordingly to
ParameterException - in case of wrong parameter-settingParameterizable.setParameters(String[])public List<AttributeSettings> getAttributeSettings()
AbstractParameterizable
getAttributeSettings in interface ParameterizablegetAttributeSettings in class AbstractParameterizableParameterizable.getAttributeSettings()
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||