mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-12-22 15:06:47 +01:00
30 lines
454 B
C++
30 lines
454 B
C++
|
|
#ifndef MLPP_UNI_LIN_REG_H
|
|
#define MLPP_UNI_LIN_REG_H
|
|
|
|
//
|
|
// UniLinReg.hpp
|
|
//
|
|
// Created by Marc Melikyan on 9/29/20.
|
|
//
|
|
|
|
#include <vector>
|
|
|
|
|
|
class MLPPUniLinReg {
|
|
public:
|
|
MLPPUniLinReg(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 */
|