https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
16public:
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
25protected:
27 const std::vector<std::vector<Real>> & _coeff;
28
30 const std::vector<std::vector<unsigned int>> & _power_matrix;
31
32private:
34 const unsigned int & _max_degree;
35};
const std::vector< double > y
const std::vector< double > x
const InputParameters & parameters() const
const unsigned int & _max_degree
Maximum polynomial degree, limiting the sum of constituent polynomial degrees.
const std::vector< std::vector< unsigned int > > & _power_matrix
The power matrix for the terms in the polynomial expressions.
const std::vector< std::vector< Real > > & _coeff
Coefficients of regression model.
virtual Real evaluate(const std::vector< Real > &x) const override
Evaluate surrogate model given a row of parameters.
virtual Real evaluate(const std::vector< Real > &x) const
Evaluate surrogate model given a row of parameters.