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

# Class DerivedDataArray

Namespace: [OpenTD.Results.Dataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset)\
Assembly: OpenTD.Results.dll

A DerivedDataArray is a DataArray that gets its data by operating on its InputCollection
of DataArrays. For example, a SelectMaxDataArray selects the DataArray with the maximum
value and returns data from it only. An AverageDataArray returns the average value of its
InputCollection at each record. To create your own custom DerivedDataArray, inherit from
this class and override at least the SetDerivedData() method.

```csharp theme={null}
public abstract class DerivedDataArray : DataArray, IEnumerable<double>, IEnumerable
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md) ←
[DerivedDataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DerivedDataArray.md)

#### Derived

[FormulaDataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.FormulaDataArray.md),
[OneSubtypeDerivedDataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.OneSubtypeDerivedDataArray.md),
[SelectOneDataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.SelectOneDataArray.md)

## Implements

[IEnumerable\<double>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1),
[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.ienumerable)

## Inherited Members

[DataArray.SetValues(IEnumerable\<double>, DataSubtype, UnitsData, ItemIdentifier)](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#setvalues-ienumerable\<double>-datasubtype-unitsdata-itemidentifier),
[DataArray.SourceDataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#sourcedataset),
[DataArray.SourceItem](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#sourceitem),
[DataArray.Subtype](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#subtype),
[DataArray.SourceDataItem](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#sourcedataitem),
[DataArray.Dimension](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#dimension),
[DataArray.IsInteger](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#isinteger),
[DataArray.GetValues()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#getvalues),
[DataArray.GetValues(UnitsData)](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#getvalues),
[DataArray.Count](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#count),
[DataArray.this\[int\]](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray),
[DataArray.ValuesSI](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#valuessi),
[DataArray.CheckData()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#checkdata),
[DataArray.AutoNamer](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#autonamer),
[DataArray.Name](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#name),
[DataArray.InternalSuggestedName](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#internalsuggestedname),
[DataArray.GetSelfSuggestedName()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#getselfsuggestedname),
[DataArray.ToString()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#tostring),
[DataArray.AutoCommenter](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#autocommenter),
[DataArray.Comment](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#comment),
[DataArray.InternalSuggestedComment](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#internalsuggestedcomment),
[DataArray.GetSelfSuggestedComment()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#getselfsuggestedcomment),
[DataArray.GetEnumerator()](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md#getenumerator),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### DerivedDataArray(DataArrayCollection)

```csharp theme={null}
public DerivedDataArray(DataArrayCollection inputCollection)
```

#### Parameters

`inputCollection` [DataArrayCollection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArrayCollection.md)

### DerivedDataArray()

```csharp theme={null}
public DerivedDataArray()
```

## Properties

### Count

The number of items in this DataArray.

```csharp theme={null}
public override int Count { get; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### IgnoreNaNInCalculations

```csharp theme={null}
public bool IgnoreNaNInCalculations { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### InputCollection

The collection of DataArrays operated upon to derive data.

```csharp theme={null}
public DataArrayCollection InputCollection { get; set; }
```

#### Property Value

[DataArrayCollection](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArrayCollection.md)

### SourceDataset

The source Dataset for the InputCollection.

```csharp theme={null}
public override IDataset SourceDataset { get; }
```

#### Property Value

[IDataset](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.IDataset.md)

#### Exceptions

OpenTDException

Cannot set DerivedDataArray.SourceDataset directly. It will be derived from InputArrays.

### SourceItem

The SourceItem for the InputCollection.

```csharp theme={null}
public override ItemIdentifier SourceItem { get; }
```

#### Property Value

[ItemIdentifier](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.ItemIdentifier.md)

#### Exceptions

OpenTDException

Cannot set DerivedDataArray.SourceItem directly. It will be derived from InputArrays.

### this\[int]

```csharp theme={null}
public override double this[int index] { get; set; }
```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

## Methods

### CheckData()

```csharp theme={null}
protected override void CheckData()
```

### GetSelfSuggestedName()

```csharp theme={null}
protected override string GetSelfSuggestedName()
```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

### GetValues(UnitsData)

Gets the data in the units provided.

```csharp theme={null}
public override List<double> GetValues(UnitsData units)
```

#### Parameters

`units` UnitsData

The units to return the data in.

#### Returns

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)\<[double](https://learn.microsoft.com/dotnet/api/system.double)>

List\<System.Double>.

### SetDerivedData()

For setting ValuesSI, any other derived data

```csharp theme={null}
protected virtual void SetDerivedData()
```

## See Also

[DataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.DataArray.md),
[SelectMaxDataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.SelectMaxDataArray.md),
[AverageDataArray](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Results.Dataset.AverageDataArray.md)
