the lastest pca lib by Castle

Dependents:   the-lastest-code mbed-test-i2c-PCA-biquad-peakdet

pca.h

Committer:
castlefei
Date:
2019-11-25
Revision:
0:8670ef66c0e3

File content as of revision 0:8670ef66c0e3:

#ifndef PCA_H
#define PCA_H


#include <Eigen/Dense.h>


using namespace Eigen;

class PCA {
    
public:
    MatrixXd featurnormail(MatrixXd &X);
    void ComComputeCov(MatrixXd &X, MatrixXd &C);
    void ComputEig(MatrixXd &C, MatrixXd &vec, MatrixXd &val);
    int ComputDim(MatrixXd &val);
 
    
    //MatrixXd acc_raw(3,0);
 };



#endif //PCA_H