#ifndef MLPP_PCA_H #define MLPP_PCA_H // // PCA.hpp // // Created by Marc Melikyan on 10/2/20. // #include "core/math/math_defs.h" #include class MLPPPCA { public: MLPPPCA(std::vector> inputSet, int k); std::vector> principalComponents(); real_t score(); private: std::vector> inputSet; std::vector> X_normalized; std::vector> U_reduce; std::vector> Z; int k; }; #endif /* PCA_hpp */