the lastest pca lib by Castle
Dependents: the-lastest-code mbed-test-i2c-PCA-biquad-peakdet
Diff: pca.h
- Revision:
- 0:8670ef66c0e3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pca.h Mon Nov 25 14:26:29 2019 +0000 @@ -0,0 +1,24 @@ +#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 \ No newline at end of file