Skip to main content

optiSLang 3D Postprocessing Script API 2025 R1

QualityMeasureBase Struct Reference

Last update: 16.07.2025

API for different quality metrics for MOP models. More...

Public Member Functions

virtual number error (ResidualsBase residuals, uint64_t output=0)=0
 Computes the prediction error of the given residuals according to the input and its selected output. More...
 
virtual bool expectsCrossValidation ()=0
 Return true if the quality measure expects the residuals to handle cross validated outputs.
 
virtual number measure (ResidualsBase residuals, uint64_t output=0)=0
 Destructor. More...
 
virtual std::ostream write (std::ostream)=0
 Write the qualityMeasures name out.
 

Detailed Description

API for different quality metrics for MOP models.

Member Function Documentation

◆ error()

virtual number error ( ResidualsBase  residuals,
uint64_t  output = 0 
)
pure virtual

Computes the prediction error of the given residuals according to the input and its selected output.

Parameters
residualsThe residuals to calculate the quality measure for
outputthe selected output.
Returns
A value that measures the deviation of the residualss approximation against the selected output.

Implemented in CoP, CoD, and CoD_adj.

◆ measure()

virtual number measure ( ResidualsBase  residuals,
uint64_t  output = 0 
)
pure virtual

Destructor.

Computes the quality measure of the given residuals according to the input and its selected output.

Parameters
residualsThe residuals to calculate the quality measure for
outputthe selected output.
Returns
A value that measures the deviation of the residuals approximation against the selected output.

Implemented in CoP, CoD, and CoD_adj.

Connect with Ansys