pmlpp/mlpp/pca/pca_old.h

32 lines
546 B
C
Raw Normal View History

2023-02-07 21:18:01 +01:00
#ifndef MLPP_PCA_OLD_H
#define MLPP_PCA_OLD_H
//
// PCA.hpp
//
// Created by Marc Melikyan on 10/2/20.
//
#include "core/math/math_defs.h"
#include <vector>
class MLPPPCAOld {
public:
MLPPPCAOld(std::vector<std::vector<real_t>> inputSet, int k);
std::vector<std::vector<real_t>> principalComponents();
real_t score();
private:
std::vector<std::vector<real_t>> inputSet;
std::vector<std::vector<real_t>> X_normalized;
std::vector<std::vector<real_t>> U_reduce;
std::vector<std::vector<real_t>> Z;
int k;
};
#endif /* PCA_hpp */