Engee documentation

Matrix Interpolation

Page in progress.

Interpolation between matrices.

matrix interpolation

Description

The Matrix Interpolation block performs interpolation (or extrapolation) on a -dimensional table using pre-calculated indices and fraction values. Each data point can be a matrix. Interpolation of up to three reference point dimensions is supported.

If the dimensionality of the anchor points is set to , and each data point in the table is a matrix with dimensionality , then the number of table data dimensions is . The last dimensions of the table data must correspond to the dimension of the anchor points in each interpolation dimension. The first dimensions of the matrix are each data point.

Ports

Output

# Port_1 — approximation of N-dimensional function
scalar | vector | matrix | multidimensional array

Details

An approximation -dimensional function calculated by interpolating (or extrapolating) tabular data from the values of the input index and the fraction .

Data types

Float64.

Complex numbers support

No

Input

# k1 — index k1 for the first dimension of the table
scalar

Details

Index for the first dimension of the table.

Data types

Int8, Int16, Int32, UInt8, UInt16, UInt32.

Complex numbers support

No

# f1 — fraction f1 for the first dimension of the table
scalar

Details

Fraction for the first dimension of the table.

Data types

Float16, Float32, Float64.

Complex numbers support

No

# k2 — k2 index for the second dimension of the table
scalar

Details

Index for the second dimension of the table.

Dependencies

To use this port, set the Interpolate dimension parameters to 2.

Data types

Int8, Int16, Int32, UInt8, UInt16, UInt32.

Complex numbers support

No

# f2 — fraction f2 for the second dimension of the table
scalar

Details

Fraction for the second dimension of the table.

Dependencies

To use this port, set the Interpolate dimension parameters to 2.

Data types

Float16, Float32, Float64.

Complex numbers support

No

# k3 — k3 index for the third dimension of the table
scalar

Details

Index for the third dimension of the table.

Dependencies

To use this port, set the Interpolate dimension parameters to 3.

Data types

Int8, Int16, Int32, UInt8, UInt16, UInt32.

Complex numbers support

No

# f3 — fraction f3 for the third dimension of the table
scalar

Details

Fraction for the third dimension of the table.

Dependencies

To use this port, set the Interpolate dimension parameters to 3.

Data types

Float16, Float32, Float64.

Complex numbers support

No

Parameters

Parameters

# Interpolation method — interpolation method
Flat | Nearest | Linear

Details

A method of interpolating table data between reference points.

Values

Flat | Nearest | Linear

Default value

Linear

Program usage name

InterpMethod

Tunable

No

Evaluatable

No

# Extrapolation method — extrapolation method
Clip | Linear

Details

A method of extrapolating table data when the index and fraction of the original data are outside the range of the reference points.

Values

Clip | Linear

Default value

Clip

Program usage name

ExtrapMethod

Tunable

No

Evaluatable

No

# Interpolate dimension — table dimension
1 | 2 | 3

Details

Table dimensionality: 1, 2 or 3. This parameters defines:

  • The number of independent variables for the table and the number of block inputs.

  • The number of sets of reference point inputs to be defined.

Values

1 | 2 | 3

Default value

1

Program usage name

InterpolateDimension

Tunable

No

Evaluatable

No

# Table data — output value table
Array of real and/or complex numbers

Details

Table of output values.

Enter the table of output values. The dimensionality of the data table must be equal to the sum of the dimensionality of the reference points and the dimensionality of the matrix, because each data point is a matrix for this block.

Default value

collect(1:1:10)

Program usage name

TableData

Tunable

No

Evaluatable

Yes