> ## 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.

# ScalarMOP Struct Reference

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

This is only a sketch of the possible ScalarMOPApproximate API Implementation shall be refined if more information is available.

## Public Member Functions

| Type | Name |
| - | - |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [activeVariables](#aeff7712c6be709d07b90e54d33c9a83b) (::data\_handler::DataHandlerBase datahandler, uint64\_t output) Return the the variable active for the selected output. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [constantInputs](#a0072c7edd32f9b19075446dad7edc9a3) (::data\_handler::DataHandlerBase datahandler) Return the the variables inactive for all outputs (the constant inputs) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [copInputs](#ade1a270ad8071b90c3c7f058e50c6fe4) (::data\_handler::DataHandlerBase datahandler) Compute the individual CoPs of second order for each input of given order for all outputs from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [copInputs](#a8b244b702328986d0f27bf31422fc825) (::data\_handler::DataHandlerBase datahandler, uint64\_t output) Compute the individual CoPs of second order for each input of given order for a single output from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [copInputsFirstOrder](#a64b05f1ce4c1a6a54a1722e958f6b5a7) (::data\_handler::DataHandlerBase datahandler) Compute the individual CoPs of first order for each input of given order for all outputs from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [copInputsFirstOrder](#af448d71b8e87e16c4834a9336b0b8cd4) (::data\_handler::DataHandlerBase datahandler, uint64\_t output) Compute the individual CoPs of given order for each input of given order for a single output from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [copTotal](#ad3cca8494b6fe38ce6e0ae0fc1ec0ea0) (::data\_handler::DataHandlerBase datahandler) Return the total [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the given datahandler. |
| number | [copTotal](#a389cab7799d534fa23da5bdf9dadf5a7) (::data\_handler::DataHandlerBase datahandler, uint64\_t output) Return the total [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) of the given output the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [crossValidation](#a5ca8403b074f9c323bd0083fdf23cb1a) (::data\_handler::DataHandlerBase datahandler) Returns the cross validation values. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **crossValidation** (::data\_handler::DataHandlerBase datahandler, uint64\_t output) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [evaluate](#a98b1fc2fcda4a9254ddd2aa26af5c25d) (::data\_handler::DataHandlerBase datahandler, [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) values) Evaluate the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values with bounds check. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [evaluate](#a7f80257761b6720ce42d765f0c92e791) (::data\_handler::DataHandlerBase datahandler, [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) values, uint64\_t output) Evaluate the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values. Only evaluate the given output. With bounds check. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [evaluateExtrapolate](#a69f65698745dd36dadeb1699989f2bb2) (::data\_handler::DataHandlerBase datahandler, [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) values) Evaluate the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values no bounds check. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [evaluateExtrapolate](#a2287b9e41a600402b5e7db0ca7108304) (::data\_handler::DataHandlerBase datahandler, [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) values, uint64\_t output) Evaluate the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values. Only evaluate the given output. No bounds check. |
| std::vector\< string > | [filterActiveSampleIds](#a883e85901256157c66e0ecbd2ab7bcb0) (::data\_handler::DataHandlerBase datahandler, std::vector\< string > sample\_ids, uint64\_t model) Return the the samples id active for the selected output from the given list of sample\_ids. |
| std::vector\< string > | [filterConstantInputNames](#a24f86122329b61107d3e1bf72d041a5f) (::data\_handler::DataHandlerBase datahandler, std::vector\< string > input\_names) Filter the list of input names such that only the constant ones are returned The Input names need to be in the order as given on the training of the [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md). |
| bool | [isValid](#a54ae75757bd7c8c3936ab036df6d18e3) (::data\_handler::DataHandlerBase datahandler) checks the settings |
| string | [modelDescription](#ad04e65da7a41baf081cbf4100367de57) (::data\_handler::DataHandlerBase datahandler, std::size\_t output) Return the description of the model computing the output for the SclarMOP in the datahandler. |
| string | [modelName](#a9ae8a26a8e856cb73692244eadaa54e0) (::data\_handler::DataHandlerBase datahandler, uint64\_t output) Return the name of the model computing the output for the SclarMOP in the datahandler. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [predictionError](#a8fc71ccbaa1350b7f88140bf7a6ded02) (::data\_handler::DataHandlerBase datahandler) Estimate the prediction error for [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values. |
| number | [predictionError](#a356e1b51c7ff0f01849dbdd20b355238) (::data\_handler::DataHandlerBase datahandler, uint64\_t output) Estimate the prediction error for [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values for the given output. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [qualityMeasureTotal](#a5851787f9ce075375b9e0aa2934505ff) (::data\_handler::DataHandlerBase datahandler, ::quality\_measure::QualityMeasureBase quality\_measure) Return the total quality measure w\.r.t. the expected responses from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the given datahandler. |
| number | [qualityMeasureTotal](#acaa360031f26d42e06a8f7b63b19198a) (::data\_handler::DataHandlerBase datahandler, ::quality\_measure::QualityMeasureBase quality\_measure, uint64\_t output) Return the total quality measure w\.r.t. the expected responses for the given output from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the given datahandler. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [sampleStatus](#a9403b938a192208b16bd52cd1c5b5b42) (::data\_handler::DataHandlerBase datahandler) Return the the samples active/inactive for all models. |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [sampleStatus](#a7b607b96e2ecb071ace9443a07dab932) (::data\_handler::DataHandlerBase datahandler, uint64\_t model) Return the the samples id active for the selected output from the given list of sample\_ids. |
| | **ScalarMOP** (string mop\_ident=handler::defaultMOPIdent) |

## Detailed Description

This is only a sketch of the possible ScalarMOPApproximate API Implementation shall be refined if more information is available.

## Member Function Documentation

### activeVariables()

```cpp theme={null}
Matrix activeVariables(
    ::data_handler::DataHandlerBase datahandler,
    uint64_t output
)
```

Return the the variable active for the selected output.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The database to take the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) from |
| output | The selected output |

**Returns**

A vector of bools specifying for each input if it is active

### constantInputs()

```cpp theme={null}
Matrix constantInputs(::data_handler::DataHandlerBase datahandler)
```

Return the the variables inactive for all outputs (the constant inputs)

**Parameters**

| Name | Description |
| - | - |
| datahandler | The database to take the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) from |

**Returns**

A vector of bools specifying for each input if it is constant

### copInputs() \[1/2]

```cpp theme={null}
Matrix copInputs(::data_handler::DataHandlerBase datahandler)
```

Compute the individual CoPs of second order for each input of given order for all outputs from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |

**Returns**

the individual [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) values of each input for each output The [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) matrix is organized as follows:

* each column corresponds to one design variable
* each row corresponds to one output variable

### copInputs() \[2/2]

```cpp theme={null}
Matrix copInputs(
    ::data_handler::DataHandlerBase datahandler,
    uint64_t output
)
```

Compute the individual CoPs of second order for each input of given order for a single output from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |
| output | The output to compute for |

**Returns**

the individual [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) values of each input for a single output output The [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) matrix is organized as follows:

* each column corresponds to one design variable
* each row corresponds to one output variable

### copInputsFirstOrder() \[1/2]

```cpp theme={null}
Matrix copInputsFirstOrder(::data_handler::DataHandlerBase datahandler)
```

Compute the individual CoPs of first order for each input of given order for all outputs from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |

**Returns**

the individual [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) values of each input for each output The [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) matrix is organized as follows:

* each column corresponds to one design variable
* each row corresponds to one output variable

### copInputsFirstOrder() \[2/2]

```cpp theme={null}
Matrix copInputsFirstOrder(
    ::data_handler::DataHandlerBase datahandler,
    uint64_t output
)
```

Compute the individual CoPs of given order for each input of given order for a single output from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |
| output | The output to compute for |

**Returns**

the individual [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) values of each input for a single output output The [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) matrix is organized as follows:

* each column corresponds to one design variable
* each row corresponds to one output variable

### copTotal() \[1/2]

```cpp theme={null}
Matrix copTotal(::data_handler::DataHandlerBase datahandler)
```

Return the total [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the given datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |

**Returns**

The total [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) of all outputs

### copTotal() \[2/2]

```cpp theme={null}
number copTotal(
    ::data_handler::DataHandlerBase datahandler,
    uint64_t output
)
```

Return the total [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) of the given output the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |
| output | The output to compute the [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) for |

**Returns**

The total [CoP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_co_p.md) of given output

### crossValidation()

```cpp theme={null}
Matrix crossValidation(::data_handler::DataHandlerBase datahandler)
```

Returns the cross validation values.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler containing the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) |

**Returns**

cross validation data from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md)

### evaluate() \[1/2]

```cpp theme={null}
Matrix evaluate(
    ::data_handler::DataHandlerBase datahandler,
    Matrix values
)
```

Evaluate the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values with bounds check.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler containing the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) |
| values | The values to evaluate the scalarMOP on |

**Returns**

Values approximated by the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md)

### evaluate() \[2/2]

```cpp theme={null}
Matrix evaluate(
    ::data_handler::DataHandlerBase datahandler,
    Matrix values,
    uint64_t output
)
```

Evaluate the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values. Only evaluate the given output. With bounds check.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler containing the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) |
| values | The values to evaluate the scalarMOP on |
| output | The output to evaluate |

**Returns**

Values approximated by the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md)

### evaluateExtrapolate() \[1/2]

```cpp theme={null}
Matrix evaluateExtrapolate(
    ::data_handler::DataHandlerBase datahandler,
    Matrix values
)
```

Evaluate the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values no bounds check.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler containing the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) |
| values | The values to evaluate the scalarMOP on |

**Returns**

Values approximated by the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md)

### evaluateExtrapolate() \[2/2]

```cpp theme={null}
Matrix evaluateExtrapolate(
    ::data_handler::DataHandlerBase datahandler,
    Matrix values,
    uint64_t output
)
```

Evaluate the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values. Only evaluate the given output. No bounds check.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler containing the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) |
| values | The values to evaluate the scalarMOP on |
| output | The output to evaluate |

**Returns**

Values approximated by the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md)

### filterActiveSampleIds()

```cpp theme={null}
std::vector<string> filterActiveSampleIds(
    ::data_handler::DataHandlerBase datahandler,
    std::vector< string > sample_ids,
    uint64_t model
)
```

Return the the samples id active for the selected output from the given list of sample\_ids.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The database to take the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) from |
| sample\_ids | A list of sample ids corresponding to the used samples |
| model | The selected model |

**Returns**

A vector of strings representing the ids of the active samples

### filterConstantInputNames()

```cpp theme={null}
std::vector<string> filterConstantInputNames(
    ::data_handler::DataHandlerBase datahandler,
    std::vector< string > input_names
)
```

Filter the list of input names such that only the constant ones are returned The Input names need to be in the order as given on the training of the [MOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_m_o_p.md).

**Parameters**

| Name | Description |
| - | - |
| datahandler | The database to take the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) from |
| input\_names | The names of the inputs in the order of the training |

**Returns**

A list of input names representing the constant inputs

### isValid()

```cpp theme={null}
bool isValid(::data_handler::DataHandlerBase datahandler)
```

checks the settings

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler we refer to |

**Returns**

true iff the datahandler may be accessed

### modelDescription()

```cpp theme={null}
string modelDescription(
    ::data_handler::DataHandlerBase datahandler,
    std::size_t output
)
```

Return the description of the model computing the output for the SclarMOP in the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |
| output | The output under consideration |

**Returns**

A string containing the description of the model

### modelName()

```cpp theme={null}
string modelName(
    ::data_handler::DataHandlerBase datahandler,
    uint64_t output
)
```

Return the name of the model computing the output for the SclarMOP in the datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |
| output | The output under consideration |

**Returns**

A string containing the name of the model

### predictionError() \[1/2]

```cpp theme={null}
Matrix predictionError(::data_handler::DataHandlerBase datahandler)
```

Estimate the prediction error for [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler containing the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) |

**Returns**

The prediction error

### predictionError() \[2/2]

```cpp theme={null}
number predictionError(
    ::data_handler::DataHandlerBase datahandler,
    uint64_t output
)
```

Estimate the prediction error for [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the datahandler on the given values for the given output.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler containing the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) |
| output | The selected output |

**Returns**

Values approximated by the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md)

### qualityMeasureTotal() \[1/2]

```cpp theme={null}
Matrix qualityMeasureTotal(
    ::data_handler::DataHandlerBase datahandler,
    ::quality_measure::QualityMeasureBase quality_measure
)
```

Return the total quality measure w\.r.t. the expected responses from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the given datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |
| quality\_measure | The quality measure |

**Returns**

The total quality measure of all outputs w\.r.t. the expected responses

### qualityMeasureTotal() \[2/2]

```cpp theme={null}
number qualityMeasureTotal(
    ::data_handler::DataHandlerBase datahandler,
    ::quality_measure::QualityMeasureBase quality_measure,
    uint64_t output
)
```

Return the total quality measure w\.r.t. the expected responses for the given output from the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) in the given datahandler.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The datahandler |
| quality\_measure | The quality measure |
| output | The output to compute for |

**Returns**

The total quality measure of all outputs w\.r.t. the expected responses

### sampleStatus() \[1/2]

```cpp theme={null}
Matrix sampleStatus(::data_handler::DataHandlerBase datahandler)
```

Return the the samples active/inactive for all models.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The database to take the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) from |

**Returns**

A matrix of bools specifying for each sample/model if it is active/inactive

### sampleStatus() \[2/2]

```cpp theme={null}
Matrix sampleStatus(
    ::data_handler::DataHandlerBase datahandler,
    uint64_t model
)
```

Return the the samples id active for the selected output from the given list of sample\_ids.

**Parameters**

| Name | Description |
| - | - |
| datahandler | The database to take the [ScalarMOP](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/struct_scalar_m_o_p.md) from |
| model | The selected model |

**Returns**

A vector of bools specifying for each samples if it is active/inactive for the model
