3 #ifndef __least_squares_2d_hpp
4 #define __least_squares_2d_hpp
10 namespace LeastSquares2D
32 bool getPoly(
const vector<double> &x,
33 const vector<double> &y,
34 const vector<double> &w,
38 bool getPoly(
const vector<double> &x,
39 const vector<double> &y,
45 double ls_m_elem(
size_t i,
size_t j,
const vector<double> &x,
const vector<double> &w);
47 double ls_b_elem(
size_t i,
const vector<double> &x,
const vector<double> &y,
const vector<double> &w);
50 #endif //__least_squares_2d_hpp
bool getPoly(const vector< double > &x, const vector< double > &y, const vector< double > &w, PolyCoeffs &cfs)
bool fixed
Definition: least_squares_2d.hpp:21
Definition: least_squares_2d.hpp:15
double c
Definition: least_squares_2d.hpp:20
std::vector< PolyCoeff > PolyCoeffs
Definition: least_squares_2d.hpp:25
double calcPoly(const PolyCoeffs &coeffs, double x)