> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ResidualsBase Struct Reference

Part of [MOP quality measure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__quality__measure)

The [Residuals](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_residuals.md) class creates an abstraction for classes the QualityMeasure may be evaluated for in the [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) framework. It abstracts the essential data necessary in an quality measurement which can be done based on Three information: approximationResiduals: This is data estimated using any approximation type crossValidationResiduals: This is data that is estimated explicitly using cross-validation sets generated by the [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) handler adjustmentCoefficient: This is a value in the range 1,...,N where N is the number of samples provided to the Estimator.

## Public Member Functions

| Type | Name |
| - | - |
|  virtual uint64\_t | [adjustmentCoefficient](#a87fe2546ad406551bfb14661eb27b183) ()=0 A function returning the AdjustmentCoefficient when called. |
|  virtual uint64\_t | [adjustmentCoefficientRef](#acafb986adcf3931cf8fb5bd60fbaee5b) ()=0 A function returning the AdjustmentCoefficient when called. |
|  virtual [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [approximationValues](#ae88060171492f9cde2caa03a1d7d8673) ()=0 A function returning the Approximation data when called. |
|  virtual [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [approximationValuesRef](#a305838b4a859164ef4326c672a4740f4) ()=0 A function returning the Approximation data when called. |
|  virtual [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [crossValidationValues](#af00a7e4b9360ddad6cb2193202c801b4) ()=0 A function return the CrossValidation data when called. |
|  virtual [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [crossValidationValuesRef](#a43e5fabbaef8c80a34ba7c6634cf9a3a) ()=0 A function return the CrossValidation data when called. |
|  virtual [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [originalValues](#a9389a044beed6f6bd43ad9e31e8262c3) ()=0 A function return the original data when called. |
|  virtual [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [originalValuesRef](#a4744f846fc5021b1de3165c0021c57c6) ()=0 A function return the original data when called. |
| template\<class Archive > | [serialize](#aaa3a4f99152c0c2dce6c8794c9b1ee49) ([Archive](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_archive.md) ar, number) serializes this object, see boost::serialization |

## Friends

| Type | Name |
| - | - |
|  class | **boost::serialization::access** |

## Detailed Description

The [Residuals](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_residuals.md) class creates an abstraction for classes the QualityMeasure may be evaluated for in the [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) framework. It abstracts the essential data necessary in an quality measurement which can be done based on Three information: approximationResiduals: This is data estimated using any approximation type crossValidationResiduals: This is data that is estimated explicitly using cross-validation sets generated by the [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md) handler adjustmentCoefficient: This is a value in the range 1,...,N where N is the number of samples provided to the Estimator.

## Member Function Documentation

### serialize()

```cpp theme={null}
serialize(
    Archive ar,
    number
)
```

serializes this object, see boost::serialization

**Parameters**

| Name | Description |
| - | - |
| ar | the boost archive |
| version | the version number |
