https://mooseframework.inl.gov
PolynomialRegressionSurrogate.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "SurrogateModel.h"
13 
15 {
16 public:
18 
20 
22  virtual Real evaluate(const std::vector<Real> & x) const override;
23  virtual void evaluate(const std::vector<Real> & x, std::vector<Real> & y) const override;
24 
25 protected:
27  const std::vector<std::vector<Real>> & _coeff;
28 
30  const std::vector<std::vector<unsigned int>> & _power_matrix;
31 
32 private:
34  const unsigned int & _max_degree;
35 };
PolynomialRegressionSurrogate(const InputParameters &parameters)
const std::vector< double > y
const std::vector< std::vector< Real > > & _coeff
Coefficients of regression model.
const unsigned int & _max_degree
Maximum polynomial degree, limiting the sum of constituent polynomial degrees.
const std::vector< double > x
virtual Real evaluate(const std::vector< Real > &x) const
Evaluate surrogate model given a row of parameters.
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
const InputParameters & parameters() const
const std::vector< std::vector< unsigned int > > & _power_matrix
The power matrix for the terms in the polynomial expressions.