Lookup table (curve)
|
Signature |
|---|
|
Lookup1D(curve, inputX, interpolationMode) |
|
Description |
|---|
|
Calculates the output value for a given 1D Table (curve) and a given X axis value. |
|
Result |
|---|
|
The output value which is calculated from the data of curve at the location given by inputX. |
|
Arguments |
|
|---|---|
|
curve |
The curve data used for the calculation. It must consist of an array of X-axis values and an array of output values of the same size. Only signals of type "Curve" (e.g. from a CDF file) can be used. The X-axis' values must be monotonic. |
|
inputX |
The input value for which the output value is calculated. |
|
interpolationMode |
Specifies how the output value is calculated: If it is 0, constant interpolation is used. If it is 1, linear interpolation is used. If inputX is outside the range of the X-axis' values, constant interpolation is always used. |