43 #ifndef GRT_PRINCIPAL_COMPONENT_ANALYSIS_HEADER
44 #define GRT_PRINCIPAL_COMPONENT_ANALYSIS_HEADER
46 #include "../../Util/GRTCommon.h"
47 #include "../../CoreModules/GRTBase.h"
111 bool project(
const VectorDouble &data,VectorDouble &prjData);
174 virtual bool print(
string title=
"")
const;
183 bool computeFeatureVector_(
const MatrixDouble &data,UINT analysisMode);
187 UINT numInputDimensions;
188 UINT numPrincipalComponents;
192 VectorDouble componentWeights;
193 VectorDouble eigenvalues;
194 vector< IndexedDouble > sortedEigenvalues;
200 enum AnalysisMode{MAX_VARIANCE=0,MAX_NUM_PCS};
206 #endif //GRT_PRINCIPAL_COMPONENT_ANALYSIS_HEADER
VectorDouble getComponentWeights() const
VectorDouble getStdDevVector() const
VectorDouble getEigenValues() const
virtual bool print(string title="") const
VectorDouble getMeanVector() const
double getMaxVariance() const
MatrixDouble getEigenVectors() const
UINT getNumInputDimensions() const
UINT getNumPrincipalComponents() const
bool computeFeatureVector(const MatrixDouble &data, double maxVariance=0.95, bool normData=false)
virtual ~PrincipalComponentAnalysis()
bool project(const MatrixDouble &data, MatrixDouble &prjData)
PrincipalComponentAnalysis()