pmlpp/mlpp/uni_lin_reg/uni_lin_reg_old.h

30 lines
500 B
C++

#ifndef MLPP_UNI_LIN_REG_OLD_H
#define MLPP_UNI_LIN_REG_OLD_H
//
// UniLinReg.hpp
//
// Created by Marc Melikyan on 9/29/20.
//
#include "core/math/math_defs.h"
#include <vector>
class MLPPUniLinRegOld {
public:
MLPPUniLinRegOld(std::vector<real_t> x, std::vector<real_t> y);
std::vector<real_t> modelSetTest(std::vector<real_t> x);
real_t modelTest(real_t x);
private:
std::vector<real_t> inputSet;
std::vector<real_t> outputSet;
real_t b0;
real_t b1;
};
#endif /* UniLinReg_hpp */