    

 ## On this page

  

 

 # QualityMeasureBase Struct Reference

 Last update: 16.07.2025 

API for different quality metrics for [MOP](class_m_o_p.xhtml "a group of random fields belonging together (either a single random field, or multiple cross-correlat...") models. [More...](struct_quality_measure_base.xhtml#details)

## <a name="pub-methods"></a>Public Member Functions

virtual number [error](struct_quality_measure_base.xhtml#ac8a977438da39c4eb58c837aecf65ab4) ([ResidualsBase](struct_residuals_base.xhtml) residuals, uint64\_t output=0)=0 Computes the prediction error of the given residuals according to the input and its selected output. [More...](#ac8a977438da39c4eb58c837aecf65ab4)  
 <a id="a449a0307ef1718dade4bf32512fefca9"></a>virtual bool [expectsCrossValidation](struct_quality_measure_base.xhtml#a449a0307ef1718dade4bf32512fefca9) ()=0 Return true if the quality measure expects the residuals to handle cross validated outputs.   
 virtual number [measure](struct_quality_measure_base.xhtml#a8d0dfd88a4f82ebefd1210abe81a82d0) ([ResidualsBase](struct_residuals_base.xhtml) residuals, uint64\_t output=0)=0 Destructor. [More...](#a8d0dfd88a4f82ebefd1210abe81a82d0)  
 <a id="a8feeac45da67267b069723ad19404224"></a>virtual std::ostream [write](struct_quality_measure_base.xhtml#a8feeac45da67267b069723ad19404224) (std::ostream)=0 Write the qualityMeasures name out.   
 <a id="details" name="details"></a>## Detailed Description

API for different quality metrics for [MOP](class_m_o_p.xhtml "a group of random fields belonging together (either a single random field, or multiple cross-correlat...") models.



## Member Function Documentation

<a id="ac8a977438da39c4eb58c837aecf65ab4"></a>## [◆ ](#ac8a977438da39c4eb58c837aecf65ab4)error()

 virtual number error  ( [ResidualsBase](struct_residuals_base.xhtml)  *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. ReturnsA value that measures the deviation of the residualss approximation against the selected output. Implemented in [CoP](struct_co_p.xhtml#a4a4f4dfb26f77b55280f37a0610dd5f9), [CoD](struct_co_d.xhtml#a4a4f4dfb26f77b55280f37a0610dd5f9), and [CoD\_adj](struct_co_d__adj.xhtml#a4a4f4dfb26f77b55280f37a0610dd5f9).





<a id="a8d0dfd88a4f82ebefd1210abe81a82d0"></a>## [◆ ](#a8d0dfd88a4f82ebefd1210abe81a82d0)measure()

 virtual number measure  ( [ResidualsBase](struct_residuals_base.xhtml)  *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. ReturnsA value that measures the deviation of the residuals approximation against the selected output. Implemented in [CoP](struct_co_p.xhtml#a4b157842a805ad774da2ab43e530e3d4), [CoD](struct_co_d.xhtml#a4b157842a805ad774da2ab43e530e3d4), and [CoD\_adj](struct_co_d__adj.xhtml#a4b157842a805ad774da2ab43e530e3d4).