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

# correlation class

**Namespace:** [Ans.DataProcessing.operators.math](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/math)

correlation()

correlation(fieldA: object, fieldB: object, weights: object, absoluteValue: object, config: OperatorConfig)

correlation(config: OperatorConfig)

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.math` |
| Assembly | `Ans_Dpf_FEMutils_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### fieldA

Field a. The reference field.

**Type:** *LinkableInput*

### fieldB

Field b. If a fields container is provided, correlation is computed for each field.

**Type:** *LinkableInput*

### weights

Field M, optional weighting for correlation computation.

**Type:** *LinkableInput*

### ponderation

Deprecated alias of: weights

**Type:** *LinkableInput*

### absoluteValue

If true, correlation factor is ||aMb||/(||aMa||.||bMb||)

**Type:** *LinkableInput*

## Outputs

### field

Correlation factor for each input field b.

**Type:** *LinkableOutput*

### index

If several b are provided, this output contains the index of the highest correlation factor.

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
correlation()
```

#### Constructor

```python theme={null}
correlation(fieldA, fieldB, weights, absoluteValue, config)
```

**Parameters:**

* `fieldA` (*object*)
* `fieldB` (*object*)
* `weights` (*object*)
* `absoluteValue` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
correlation(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
