functioninterpolate
Constant interpolation in a buffer of random values
Information
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].
Revisions
| Date | Description | ||
|---|---|---|---|
| Sep. 4, 2015 |
|