pmlpp/mlpp/uni_lin_reg/uni_lin_reg.h

32 lines
488 B
C
Raw Normal View History

2023-01-24 18:57:18 +01:00
#ifndef MLPP_UNI_LIN_REG_H
#define MLPP_UNI_LIN_REG_H
//
// UniLinReg.hpp
//
// Created by Marc Melikyan on 9/29/20.
//
2023-01-27 13:01:16 +01:00
#include "core/math/math_defs.h"
#include <vector>
2023-01-24 19:20:18 +01:00
class MLPPUniLinReg {
2023-01-24 19:00:54 +01:00
public:
2023-01-27 13:01:16 +01:00
MLPPUniLinReg(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);
2023-01-24 19:00:54 +01:00
private:
2023-01-27 13:01:16 +01:00
std::vector<real_t> inputSet;
std::vector<real_t> outputSet;
2023-01-24 19:00:54 +01:00
2023-01-27 13:01:16 +01:00
real_t b0;
real_t b1;
2023-01-24 19:00:54 +01:00
};
2023-01-24 19:20:18 +01:00
#endif /* UniLinReg_hpp */