12 #ifndef AMO_LIBRARY_CURVEFITVAL_H 13 #define AMO_LIBRARY_CURVEFITVAL_H 29 std::vector<double> xcoord,
30 std::vector<double> ycoord,
31 const std::size_t pdegree,
32 const double loadFactor = 0
35 xcoord(
std::move(xcoord)),
36 ycoord(
std::move(ycoord)),
37 loadFactor(loadFactor)
39 if (this->xcoord.size() != this->ycoord.size()) {
40 throw std::runtime_error(
"X and Y coordinate vectors must be the same size");
43 coeff = Fit_Coefficients();
61 std::vector<double> xcoord, ycoord;
70 std::vector<double> coeff;
71 std::vector<double> Fit_Coefficients();
75 #endif //AMO_LIBRARY_CURVEFITVAL_H
CurveFitVal(std::vector< double > xcoord, std::vector< double > ycoord, const std::size_t pdegree, const double loadFactor=0)
double calculate() const
Contains the definition of functions of CurveFitVal class. calculate(): Calculates the curve fit valu...