38 virtual void execute()
override;
const std::string _x_name
The name of the variables storing the x, y data.
const bool _truncate_order
Whether to truncate the polynomial order if an insufficient number of points is provided.
VectorPostprocessorValue * _sample_x
The variables used to write out samples of the least squares fit.
const VectorPostprocessorValue & _x_values
The variables with the x, y data to be fit.
This class is here to combine the VectorPostprocessor interface and the base class VectorPostprocesso...
const VectorPostprocessorValue & _y_values
VectorPostprocessorValue * _sample_y
unsigned int _num_samples
The number of samples to be taken.
VectorPostprocessorName _vpp_name
The name of the VectorPostprocessor on which to perform the fit.
LeastSquaresFit(const InputParameters ¶meters)
Class constructor.
virtual void initialize() override
Initialize, clears old results.
const std::string _y_name
const MooseEnum _output_type
The type of output.
bool _have_sample_x_min
Did the user specify the min and max x values for sampling?
const Real _x_scale
Values used to scale and or shift x and y data.
Real _sample_x_min
The min and max x values for sampling.
LeastSquaresFit is a VectorPostprocessor that performs a least squares fit on data calculated in anot...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
virtual void execute() override
Perform the least squares fit.
std::vector< Real > VectorPostprocessorValue
const unsigned int _order
The order of the polynomial fit to be performed.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
VectorPostprocessorValue * _coeffs
The variable used to write out the coefficients of the fit.
const InputParameters & parameters() const
Get the parameters of the object.