29 const std::vector<Real> & y,
31 bool truncate_order =
false);
virtual void fillMatrix() override
Helper function that creates the matrix necessary for the least squares algorithm.
virtual Real sample(Real x) override
This function will take an independent variable input and will return the dependent variable based on...
static int _file_number
File number.
Base class for linear least squares fit method.
Least squares polynomial fit.
bool _truncate_order
Flag to implement a truncated polynomial.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
PolynomialFit(const std::vector< Real > &x, const std::vector< Real > &y, unsigned int order, bool truncate_order=false)
unsigned int _order
Order of the polynomial.