43 #ifndef GRT_PRINCIPAL_COMPONENT_ANALYSIS_HEADER
44 #define GRT_PRINCIPAL_COMPONENT_ANALYSIS_HEADER
46 #include "../../Util/GRTCommon.h"
47 #include "../../CoreModules/MLBase.h"
76 bool computeFeatureVector(
const MatrixFloat &data,Float maxVariance=0.95,
bool normData=
false);
89 bool computeFeatureVector(
const MatrixFloat &data,UINT numPrincipalComponents,
bool normData=
false);
119 virtual bool save( std::fstream &file )
const;
127 virtual bool load( std::fstream &file );
190 virtual bool print( std::string title=
"" )
const;
205 bool computeFeatureVector_(
const MatrixFloat &data,UINT analysisMode);
208 UINT numPrincipalComponents;
217 enum AnalysisMode{MAX_VARIANCE=0,MAX_NUM_PCS};
222 #endif //GRT_PRINCIPAL_COMPONENT_ANALYSIS_HEADER
VectorFloat getEigenValues() const
virtual bool save(const std::string filename) const
virtual bool load(const std::string filename)
virtual bool print() const
VectorFloat getStdDevVector() const
VectorFloat getMeanVector() const
Float getMaxVariance() const
UINT getNumInputDimensions() const
UINT getNumPrincipalComponents() const
VectorFloat getComponentWeights() const