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

# ReconstructData Class Reference

Part of [Field models](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__fieldmodels)

Data reconstruction of missing data items using one or multiple random fields.

## Public Types

| Type | Name |
| - | - |
| enum | [enum\_type](#af7ca783694e51f78ef01ceb1e00104c5) \{ [STOCHASTIC](#af7ca783694e51f78ef01ceb1e00104c5a2f408d13698dc4a90bca408d8aa29d8c) = 0, [STOCHASTIC\_AND\_INTERPOLATE](#af7ca783694e51f78ef01ceb1e00104c5a2a8c6ebc2793e96922bb7c43756aff20) } an enum type defining the way how missing items are interpreted |

## Public Member Functions

| Type | Name |
| - | - |
| | [check](#a47c34ec1e578c2ce27cf1c5fcd0d1704) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)) checks the settings on plausibility It throws an exception if there is a problem with the settings. Important: It tries to find out all problems with these settings and then exits the routine. |
| | [compute](#ab08e112d95fe611e7eb25491c354d115) ([Structure](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_structure) [database](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gaebcac3a2836ec9fdf2e47bd812994b6b)) performs the reduction of a random field for multiple sets of samples |
| | [ReconstructData](#a36d283177fe59e0ad6c26925b488e5a7) () constructor |

## Public Attributes

| Type | Name |
| - | - |
| [enum\_type](#af7ca783694e51f78ef01ceb1e00104c5) | [algorithm](#a701921501ba32dc7a5be7e7a52265a97) defines the algorithm type //! |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [element\_data](#a0a142faa1cc762466b884ad3c8979f3a) the data set to be analyzed |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [node\_data](#a4b3543f31398671628dd711c98a0d37e) the data set to be analyzed |
|  bool | [overwrite\_existing](#ade25e60bd85c8b4abd4f5b416cae0eb9) Is true if already existing output data objects will be replaced. In this case, also all depending objects of the already existing one will be deleted. |
|  string | [prefix](#ab7b6fb49a3a178b1628690ad0f00927d) The string used to prefix the original quntity ident. |
| [DataObjectContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_data_object_container.md) | [scalar\_data](#a0c1c80374ba4d28153ed219819d24612) the data set to be analyzed |

## Detailed Description

Data reconstruction of missing data items using one or multiple random fields.

## Member Enumeration Documentation

### enum\_type

```cpp theme={null}
enum enum_type
```

an enum type defining the way how missing items are interpreted

| Enumerator | |
| - | - |
| STOCHASTIC | reconstruct missing item values using the random field field model (missing items will truely by ignored in the projection into subspace) |
| STOCHASTIC\_AND\_INTERPOLATE | like STOCHASTIC, but ensures exactness of available data by adding an interpolation to the reconstructed parts. |

## Member Function Documentation

### check()

```cpp theme={null}
check(Structure database)
```

checks the settings on plausibility It throws an exception if there is a problem with the settings. Important: It tries to find out all problems with these settings and then exits the routine.

**Parameters**

| Name | Description |
| - | - |
| database | the SoS structure |

### compute()

```cpp theme={null}
compute(Structure database)
```

performs the reduction of a random field for multiple sets of samples

**Parameters**

| Name | Description |
| - | - |
| database | the output object where new objects are added to |
