58 void setVariables(
const std::vector<Real> & x,
const std::vector<Real> & y);
void doLeastSquares()
Wrapper for the LAPACK dgels function.
virtual void fillMatrix()=0
Helper function that creates the matrix necessary for the least squares algorithm.
unsigned int getSampleSize()
Size of the array holding the points.
unsigned int _num_coeff
The number of coefficients.
Base class for linear least squares fit method.
std::vector< Real > _y
Dependent variable.
virtual ~LeastSquaresFitBase()=default
virtual void generate()
Generate the fit.
std::vector< Real > _x
Independent variable.
void setVariables(const std::vector< Real > &x, const std::vector< Real > &y)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real sample(Real x)=0
This function will take an independent variable input and will return the dependent variable based on...
const std::vector< Real > & getCoefficients()
Const reference to the vector of coefficients of the least squares fit.
std::vector< Real > _coeffs
Vector of coefficients of the least squares fit.
std::vector< Real > _matrix
Basis functions evaluated at each independent variable (note: actually a vector)