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

# Field models

Calculate and evalute field models (e.g. synthetic random fields, empirical random fields)

## Classes

| Type | Name |
| - | - |
| class | [ApproximateRandomField](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_approximate_random_field.md) an algorithm that computes new field samples from amplitudes and random field model |
| class | [ComputeAmplitudes](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_compute_amplitudes.md) Decomposition of one or multiple random fields. |
| class | [ComputeRandomFieldErrors](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_compute_random_field_errors.md) Decomposition of one or multiple random fields. |
| class | [ExternalRandomFieldModel\< TYPE >](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_external_random_field_model.md) Provides random field models. |
| class | [FreeFormVariationModel\< TYPE >](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_free_form_variation_model.md) Provides random field models. |
| class | [GenerateRandomFields](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_generate_random_fields.md) an algorithm that computes new field samples from amplitudes and scatter shapes The algorithm is essentially the same is the class FieldDesignsFromAmplitudes, but it is based on the data structures stored in class [RandomFieldContainer](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_container.md). |
| class | [PiecewiseConstantModel\< TYPE >](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_piecewise_constant_model.md) Provides random field models. |
| class | [RandomFieldDecompositionFromSamples](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_decomposition_from_samples.md) Decomposition of one or multiple random fields. |
| class | [RandomFieldModel\< TYPE >](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_model.md) Provides random field models. |
| class | [ReconstructData](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_reconstruct_data.md) Data reconstruction of missing data items using one or multiple random fields. |

## Functions

| Type | Name |
| - | - |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [generateRandomIndices](#ga42a9391fd4dba13057a133363710ba55) (number number, number max\_number, size\_t seed=std::time(NULL)) |
| | **template** (ExternalRandomFieldModelNode) [ExternalRandomFieldModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_external_random_field_model.md)\< [NODE\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379a2bccb499db6de63e558b75b39da3d482) > |
| | **template** (ExternalRandomFieldModelElement) [ExternalRandomFieldModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_external_random_field_model.md)\< [ELEMENT\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379ae9445a58a2c3cd515f2058cbd3117174) > |
| | **template** (PiecewiseConstantModelNode) [PiecewiseConstantModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_piecewise_constant_model.md)\< [NODE\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379a2bccb499db6de63e558b75b39da3d482) > |
| | **template** (PiecewiseConstantModelElement) [PiecewiseConstantModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_piecewise_constant_model.md)\< [ELEMENT\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379ae9445a58a2c3cd515f2058cbd3117174) > |
| | **template** (FreeFormVariationModelNode) [FreeFormVariationModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_free_form_variation_model.md)\< [NODE\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379a2bccb499db6de63e558b75b39da3d482) > |
| | **template** (FreeFormVariationModelElement) [FreeFormVariationModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_free_form_variation_model.md)\< [ELEMENT\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379ae9445a58a2c3cd515f2058cbd3117174) > |
| | **template** (RandomFieldModelNode) [RandomFieldModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_model.md)\< [NODE\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379a2bccb499db6de63e558b75b39da3d482) > |
| | **template** (RandomFieldModelElement) [RandomFieldModel](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_random_field_model.md)\< [ELEMENT\_DATA](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__data#gga1bebf1e22deb3cd41d7d99ddcdb15379ae9445a58a2c3cd515f2058cbd3117174) > |

## Detailed Description

Calculate and evalute field models (e.g. synthetic random fields, empirical random fields)

## Function Documentation

### generateRandomIndices()

```cpp theme={null}
Matrix generateRandomIndices(
    number number,
    number max_number,
    size_t seed = std::time(NULL)
)
```

**Returns**

a vector with random indices

**Parameters**

| Name | Description |
| - | - |
| number | the number of indices |
| max\_number | the number N of possible indices (0..N-1) |
| seed | the seed of thr random number generator |
