Gaia

The PCA Analyzer computes the Principal Components Analysis of the given DataSet using the specified descriptors. More...

#include <pca.h>

Inheritance diagram for gaia2::PCA:
gaia2::Analyzer

Public Member Functions

 PCA (const ParameterMap &params)
 
Transformation analyze (const DataSet *dataset, const Region &region) const
 
- Public Member Functions inherited from gaia2::Analyzer
 Analyzer (const ParameterMap &params)
 
virtual Transformation analyze (const DataSet *dataset) const
 
void checkDataSet (const DataSet *dataset) const
 Checks that the given dataset is valid. More...
 
void checkMinPoints (const DataSet *dataset, int n) const
 Checks that the given dataset as at least the specified number of points. More...
 
const RegioncheckFixedLength (const Region &region, const PointLayout &layout) const
 Checks that the given Region only contains fixed-length descriptors and throws an exception if not. More...
 

Protected Attributes

QString _resultName
 
int _targetDimension
 
Real _coveredVariance
 
- Protected Attributes inherited from gaia2::Analyzer
ParameterMap _params
 
QStringList _descriptorNames
 
QStringList _exclude
 

Additional Inherited Members

- Public Attributes inherited from gaia2::Analyzer
QString name
 Name for the algorithm, usually the key that was used to instantiate it from the factory.
 
QStringList validParams
 List of valid parameters this analyzer accepts. More...
 

Detailed Description

The PCA Analyzer computes the Principal Components Analysis of the given DataSet using the specified descriptors.

NB: the dimension and coveredVariance parameters are exclusive, so you must specify only one of the two.

Parameters
descriptorNamesthe names of the descriptors to be included in the PCA analysis. Only accepts real descriptors, can use wildcards. (default: "*").
exceptthe names of the descriptors to be removed from the selected list specified before. Can use wildcards. (default: "").
resultNamethe name of the resulting descriptor. (default: some name constructed from 'pca', the number of dimensions, and the original descriptor names)
dimensionthe target (final) dimension.
coveredVariancethe percentage of the total variance to be covered by the PCA. The target dimension will then be chosen as the smallest one that accounts for at least that much variance.

The documentation for this class was generated from the following files: