    

 ## On this page

  

 

 # PolynomialModel Class Reference

 Last update: 16.07.2025 

## <a name="pub-types"></a>Public Types

<a id="a154c6fe2812902d9c87d667acd5c16b1"></a>using **InternalModelType** = dynardo::math::metamodel::LinearRegression ## <a name="pub-methods"></a>Public Member Functions

<a id="aedfb47575823522e6a6d22ce6c12e826"></a>virtual [addProperty](class_property_user_base.xhtml#aedfb47575823522e6a6d22ce6c12e826) ([PropertyBase](struct_property_base.xhtml) p) Properties that help the [ScalarMOP](struct_scalar_m_o_p.xhtml "This is only a sketch of the possible ScalarMOPApproximate API Implementation shall be refined if mor...") scheduling the Models to be built The properties class needs to be implemented for the specific model type.   
 virtual [Matrix](class_matrix.xhtml) [evaluate](class_model_base.xhtml#a5ec7821e9b8c1aaa6c43dc5ca1263f2f) ([Matrix](class_matrix.xhtml) points, bool extrapolate=true)=0 Evaluates the model on the given points and returns the values. [More...](#a5ec7821e9b8c1aaa6c43dc5ca1263f2f)  
 <a id="a0e1dd7df82728594fc128ed1c797b0c0"></a>virtual [PropertyList](class_property_list.xhtml) [getProperties](class_property_user_base.xhtml#a0e1dd7df82728594fc128ed1c797b0c0) () Returns the properties stored by this user.   
 <a id="a137935f0ff0edbfcdeb238f1ea05f514"></a>[PolynomialModel](class_polynomial_model.xhtml) [operator=](class_polynomial_model.xhtml#a137935f0ff0edbfcdeb238f1ea05f514) ([PolynomialModel](class_polynomial_model.xhtml)) Copies an instance of this class.   
 <a id="aa47bd2850cda208ef8a9064b03e082a9"></a> [PolynomialModel](class_polynomial_model.xhtml#aa47bd2850cda208ef8a9064b03e082a9) () Creates an default initialized instance of this class.   
  [PolynomialModel](class_polynomial_model.xhtml#aa0ccc82f84ceeed4b03f5eca8f2ca13d) (InternalModelType \*model, quality\_measure::ResidualsBase \*residuals, string description, [PropertyList](class_property_list.xhtml) properties=[PropertyList](class_property_list.xhtml)()) Creates an instance with given a created internal model, the residuals from the training and Properties. You should not call this Constructor by yourself. An instance of this class gets created through the [CreatePolynomialModel::compute](class_create_polynomial_model.xhtml#a428e7ba979340c651ec1372a3307e037 "Builds the model from the given samples and returns the model. ") function. [More...](#aa0ccc82f84ceeed4b03f5eca8f2ca13d)  
 <a id="af7fdc49422192c85d4d69430655b9890"></a> [PolynomialModel](class_polynomial_model.xhtml#af7fdc49422192c85d4d69430655b9890) ([PolynomialModel](class_polynomial_model.xhtml) other) Copies an instance of this class.   
 virtual [transferProperties](class_property_user_base.xhtml#ab9507274f126b856fb69cd621f0f9fb4) ([PropertyList](class_property_list.xhtml) property\_list) Convenience function to transfer a complete [PropertyList](class_property_list.xhtml "Container class for handling properties Uses templates to easily find and cast configurations of diff...") into the model. [More...](#ab9507274f126b856fb69cd621f0f9fb4)  
## Constructor &amp; Destructor Documentation

<a id="aa0ccc82f84ceeed4b03f5eca8f2ca13d"></a>## [◆ ](#aa0ccc82f84ceeed4b03f5eca8f2ca13d)PolynomialModel()

 [PolynomialModel](class_polynomial_model.xhtml)  ( InternalModelType \*  *model*,    quality\_measure::ResidualsBase \*  *residuals*,    string  *description*,    [PropertyList](class_property_list.xhtml)  *properties* = `<a class="el" href="class_property_list.xhtml">PropertyList</a>()`   ) 

Creates an instance with given a created internal model, the residuals from the training and Properties. You should not call this Constructor by yourself. An instance of this class gets created through the [CreatePolynomialModel::compute](class_create_polynomial_model.xhtml#a428e7ba979340c651ec1372a3307e037 "Builds the model from the given samples and returns the model. ") function.

Parameters modelA pointer to the internal model type. This Constructor takes ownership of the pointer. residualsThe residuals from the MOPs competition/training process descriptionA description of the model to be shown in PP properties.Certain properies for this model. 



## Member Function Documentation

<a id="a5ec7821e9b8c1aaa6c43dc5ca1263f2f"></a>## [◆ ](#a5ec7821e9b8c1aaa6c43dc5ca1263f2f)evaluate()

 virtual [Matrix](class_matrix.xhtml) evaluate  ( [Matrix](class_matrix.xhtml)  *points*,    bool  *extrapolate* = `true`   )   pure virtualinherited 

Evaluates the model on the given points and returns the values.

Parameters pointsThe input points the model is evaluated on extrapolateEvaluate the points outside of the bounding box of its training data ReturnsThe values of the model on the given points Implemented in [CustomModel](class_custom_model.xhtml#a85c04b0ec7ee1ee66e21af920faabb73), [KrigingModel](class_kriging_model.xhtml#a85c04b0ec7ee1ee66e21af920faabb73), [MLSModel](class_m_l_s_model.xhtml#a85c04b0ec7ee1ee66e21af920faabb73), and [RBFModel](class_r_b_f_model.xhtml#a85c04b0ec7ee1ee66e21af920faabb73).





<a id="ab9507274f126b856fb69cd621f0f9fb4"></a>## [◆ ](#ab9507274f126b856fb69cd621f0f9fb4)transferProperties()

 virtual transferProperties  ( [PropertyList](class_property_list.xhtml)  *property\_list*)   virtualinherited 

Convenience function to transfer a complete [PropertyList](class_property_list.xhtml "Container class for handling properties Uses templates to easily find and cast configurations of diff...") into the model.

Parameters property\_listThe properties to transfer into this model