Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

KrigingModel Class Reference

Last update: 16.07.2025

Public Types

using InternalModelType = dynardo::math::metamodel::OrdinaryKriging
 

Public Member Functions

virtual addProperty (PropertyBase p)
 Properties that help the ScalarMOP scheduling the Models to be built The properties class needs to be implemented for the specific model type.
 
virtual Matrix evaluate (Matrix points, bool extrapolate=true) override
 Destroys an instance of this class. More...
 
virtual PropertyList getProperties ()
 Returns the properties stored by this user.
 
 KrigingModel ()
 Creates an default initialized instance of this class.
 
 KrigingModel (InternalModelType *model, quality_measure::ResidualsBase *residuals, string description, PropertyList properties=PropertyList())
 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 CreateKrigingModel::compute function. More...
 
 KrigingModel (KrigingModel other)
 Copies an instance of this class.
 
KrigingModel operator= (KrigingModel)
 Copies an instance of this class.
 
virtual transferProperties (PropertyList property_list)
 Convenience function to transfer a complete PropertyList into the model. More...
 

Constructor & Destructor Documentation

◆ KrigingModel()

KrigingModel ( InternalModelType *  model,
quality_measure::ResidualsBase *  residuals,
string  description,
PropertyList  properties = PropertyList() 
)

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 CreateKrigingModel::compute 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 for PP
properties.Certain properies for this model.

Member Function Documentation

◆ evaluate()

virtual Matrix evaluate ( Matrix  points,
bool  extrapolate = true 
)
overridevirtual

Destroys an instance of this class.

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 trainig data
Returns
The values of the model on the given points

Implements ModelBase.

◆ transferProperties()

virtual transferProperties ( PropertyList  property_list)
virtualinherited

Convenience function to transfer a complete PropertyList into the model.

Parameters
property_listThe properties to transfer into this model

Connect with Ansys