---
url: /dyad/stable/stdlib/BlockComponents/components/Tables.InterpolatedTable.md
description: >-
  Dyad Tables.InterpolatedTable docs.  This component extends from
  BlockComponents.Interfaces.SI2SO
---

# `Tables.InterpolatedTable` {#Tables.InterpolatedTable}

This component extends from [`BlockComponents.Interfaces.SI2SO`](../types/Interfaces.SI2SO.md)

## Usage {#Usage}

`BlockComponents.Tables.InterpolatedTable(interpolator=dataset_interpolation(interpolation_dim1, axis1, interpolation_dim2, axis2, data))`

## Parameters: {#Parameters:}

|                 Name |                                            Description | Units |             Default value |
| --------------------:| ------------------------------------------------------:| -----:| -------------------------:|
|              `axis1` |                                                        |     – |                           |
|              `axis2` |                                                        |     – |                           |
|               `data` |  Dataset containing the data points to be interpolated |     – |                           |
| `interpolation_dim1` | Type of interpolation to be used (e.g., linear, cubic) |     – |                           |
| `interpolation_dim2` |                                                        |     – |                           |
|       `interpolator` |                                                        |     – | dataset_int...xis2, data) |

## Connectors {#Connectors}

* `u1` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

* `u2` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

* `y` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

## Behavior {#Behavior}

Behavior of this component cannot be rendered because it includes `path` variables.

## Source {#Source}

```dyad
component InterpolatedTable
  "Input signal port"
  extends BlockComponents.Interfaces.SI2SO
  structural parameter axis1::Real[:]
  structural parameter axis2::Real[:]
  "Dataset containing the data points to be interpolated"
  structural parameter data::Real[:, :]
  "Type of interpolation to be used (e.g., linear, cubic)"
  structural parameter interpolation_dim1::InterpolationDimension
  structural parameter interpolation_dim2::InterpolationDimension
  parameter interpolator::TableInterpolator = dataset_interpolation(interpolation_dim1, axis1, interpolation_dim2, axis2, data)
relations
  y = interpolator(u1, u2)
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Interpolation.svg"},
    "doc": {"behavior": false}
  }
}
end
```

```dyad
component InterpolatedTable
  "First real-valued input signal"
  u1 = RealInput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "default", "x1": -100, "y1": 150, "x2": 0, "y2": 250, "rot": 0},
        "diagram": {"iconName": "default", "x1": -100, "y1": 150, "x2": 0, "y2": 250, "rot": 0}
      },
      "tags": []
    }
  }
  "Second real-valued input signal"
  u2 = RealInput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "default", "x1": -100, "y1": 750, "x2": 0, "y2": 850, "rot": 0},
        "diagram": {"iconName": "default", "x1": -100, "y1": 750, "x2": 0, "y2": 850, "rot": 0}
      }
    }
  }
  "Real-valued output signal"
  y = RealOutput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0},
        "diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      }
    }
  }
  structural parameter axis1::Real[:]
  structural parameter axis2::Real[:]
  "Dataset containing the data points to be interpolated"
  structural parameter data::Real[:, :]
  "Type of interpolation to be used (e.g., linear, cubic)"
  structural parameter interpolation_dim1::InterpolationDimension
  structural parameter interpolation_dim2::InterpolationDimension
  parameter interpolator::TableInterpolator = dataset_interpolation(interpolation_dim1, axis1, interpolation_dim2, axis2, data)
relations
  y = interpolator(u1, u2)
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Interpolation.svg"},
    "doc": {"behavior": false}
  }
}
end
```

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`InterpolatedTable`](Tables.InterpolatedTable.md)

  * [`InterpolatedTable`](Tables.InterpolatedTable.md)
