// // PCA.hpp // // Created by Marc Melikyan on 10/2/20. // #ifndef PCA_hpp #define PCA_hpp #include namespace MLPP{ class PCA{ public: PCA(std::vector> inputSet, int k); std::vector> principalComponents(); double score(); private: std::vector> inputSet; std::vector> X_normalized; std::vector> U_reduce; std::vector> Z; int k; }; } #endif /* PCA_hpp */