18 params.
addClassDescription(
"Evaluates polynomial regression model with coefficients computed " 19 "from PolynomialRegressionTrainer.");
25 _coeff(getModelData<
std::vector<
std::vector<
Real>>>(
"_coeff")),
26 _power_matrix(getModelData<
std::vector<
std::vector<unsigned
int>>>(
"_power_matrix")),
27 _max_degree(getModelData<unsigned
int>(
"_max_degree"))
36 "Input point does not match dimensionality of training data.");
44 val +=
_coeff[0][i] * tmp_val;
55 "Input point does not match dimensionality of training data.");
63 for (
unsigned int r = 0; r <
_coeff.size(); ++r)
PolynomialRegressionSurrogate(const InputParameters ¶meters)
const std::vector< double > y
const std::vector< std::vector< Real > > & _coeff
Coefficients of regression model.
registerMooseObject("StochasticToolsApp", PolynomialRegressionSurrogate)
static InputParameters validParams()
const std::vector< double > x
static InputParameters validParams()
virtual Real evaluate(const std::vector< Real > &x) const override
Evaluate surrogate model given a row of parameters.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
const std::vector< std::vector< unsigned int > > & _power_matrix
The power matrix for the terms in the polynomial expressions.
void ErrorVector unsigned int