pmlpp/mlpp/uni_lin_reg/uni_lin_reg.h

32 lines
599 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.
//
#include <vector>
namespace MLPP{
class UniLinReg{
public:
UniLinReg(std::vector <double> x, std::vector<double> y);
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;
};
}
#endif /* UniLinReg_hpp */