2023-01-24 18:57:18 +01:00
|
|
|
|
|
|
|
#ifndef MLPP_UNI_LIN_REG_H
|
|
|
|
#define MLPP_UNI_LIN_REG_H
|
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
//
|
|
|
|
// UniLinReg.hpp
|
|
|
|
//
|
|
|
|
// Created by Marc Melikyan on 9/29/20.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2023-01-24 19:20:18 +01:00
|
|
|
|
2023-01-25 01:09:37 +01:00
|
|
|
class MLPPUniLinReg {
|
2023-01-24 19:00:54 +01:00
|
|
|
public:
|
2023-01-25 01:09:37 +01:00
|
|
|
MLPPUniLinReg(std::vector<double> x, std::vector<double> y);
|
2023-01-24 19:00:54 +01:00
|
|
|
std::vector<double> modelSetTest(std::vector<double> x);
|
|
|
|
double modelTest(double x);
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<double> inputSet;
|
|
|
|
std::vector<double> outputSet;
|
|
|
|
|
|
|
|
double b0;
|
|
|
|
double b1;
|
|
|
|
};
|
2023-01-24 19:20:18 +01:00
|
|
|
|
2023-01-23 21:13:26 +01:00
|
|
|
|
|
|
|
#endif /* UniLinReg_hpp */
|