43 #ifndef GRT_PRINCIPAL_COMPONENT_ANALYSIS_HEADER
44 #define GRT_PRINCIPAL_COMPONENT_ANALYSIS_HEADER
46 #include "../../Util/GRTCommon.h"
47 #include "../../CoreModules/MLBase.h"
190 virtual bool print( std::string title=
"" )
const;
201 bool computeFeatureVector_(
const MatrixFloat &data,UINT analysisMode);
204 UINT numPrincipalComponents;
213 enum AnalysisMode{MAX_VARIANCE=0,MAX_NUM_PCS};
219 #endif //GRT_PRINCIPAL_COMPONENT_ANALYSIS_HEADER
virtual ~PrincipalComponentAnalysis()
virtual bool loadModelFromFile(std::fstream &file)
PrincipalComponentAnalysis()
VectorFloat getEigenValues() const
virtual bool saveModelToFile(std::fstream &file) const
virtual bool print() const
VectorFloat getStdDevVector() const
VectorFloat getMeanVector() const
MatrixFloat getEigenVectors() const
Float getMaxVariance() const
bool project(const MatrixFloat &data, MatrixFloat &prjData)
UINT getNumInputDimensions() const
bool computeFeatureVector(const MatrixFloat &data, Float maxVariance=0.95, bool normData=false)
UINT getNumPrincipalComponents() const
VectorFloat getComponentWeights() const