regression.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <array>
3 #include <armadillo>
4 #include <cassert>
5 namespace pass
6 {
13 {
14 public:
32  arma::rowvec linear_model(const arma::rowvec &x_values, const arma::rowvec &y_values);
33 
53  arma::rowvec poly_model(const arma::rowvec &x_values, const arma::rowvec &y_values, int degree);
54 
58  double predict_linear(const double &x, const arma::rowvec &model);
59 
63  double predict_poly(const double &x, const arma::rowvec &model);
64 };
65 } // namespace pass
arma::rowvec poly_model(const arma::rowvec &x_values, const arma::rowvec &y_values, int degree)
Definition: regression.cpp:51
arma::rowvec linear_model(const arma::rowvec &x_values, const arma::rowvec &y_values)
Definition: regression.cpp:4
Definition: adaptive_parameter_search.hpp:5
double predict_linear(const double &x, const arma::rowvec &model)
Definition: regression.cpp:171
Definition: regression.hpp:12
double predict_poly(const double &x, const arma::rowvec &model)
Definition: regression.cpp:178