functiongetInterpolationCoefficients
Determine interpolation coefficients and next time event
Extends from Modelica.Icons.Function (Icon for functions).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:,2] | table | Table for interpolation | |
| Real | offset | y-offset | |
| Real | startTimeScaled | Scaled time-offset | |
| Real | timeScaled | Actual scaled time instant | |
| Integer | last | Last used lower grid index | |
| Real | TimeEps | Relative epsilon to check for identical time instants | |
| Real | shiftTimeScaled | Time shift |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | a | Interpolation coefficient a (y=a*x + b) | |
| Real | b | Interpolation coefficient b (y=a*x + b) | |
| Real | nextEventScaled | Next scaled event instant | |
| Integer | next | New lower grid index |