Constant interpolation in a buffer of random values
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 2026-04-15T18:18:36Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos