Syntax
y = Constant.interpolate(buffer,offset);
Description
Interpolate in buffer by using constant interpolation.
Input argument offset is a Real number marking the point at which
interpolation shall take place.
offset=0 is the first buffer value buffer[1].
offset=size(buffer,1)-1 is the last buffer value buffer[size(buffer,1)].
It is required that 0 ≤ offset < size(buffer,1)-1.
If the buffer has length 1, the function always returns y=buffer[1].
Otherwise the function returns y = buffer[integer(offset)+1].
Date |
Description |
Sep. 4, 2015 |
|
Generated at 2024-12-25T19:25:50Z
by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos