functionrawInterpolate
Interpolate in a list of tuples given the index value for the index value to the left
Extends from Function (Yields true if input is different from zero).
Information
This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.
The output y is the interpolated value given a list of tuples (tuples = { {x1,y1}, {x2,y2}, ...}) and the index value jlo as a result from the functions hunt() or locate().
Syntax
Functions.rawInterpolate(x, tuples, jlo);
Examples
rawInterpolate(1.5, {{0,1},{1,2}, {2,4},{3,5}}, 2); // 3.0
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x (from notZeroQ) | Real input | |
| Real | tuples | Ordered list of values | |
| Integer | jlo | Index value to the left of x |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | y (from notZeroQ) | Boolean output |
Revisions
- Introduced in v2.1.0.