.AdvancedNoise.Interpolators.Constant.interpolate

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
DLR logo Initial version implemented by A. Klöckner, F. v.d. Linden, D. Zimmer, M. Otter.
DLR Institute of System Dynamics and Control

Generated at 2024-02-25T19:15:57Z by OpenModelicaOpenModelica 1.22.1 using GenerateDoc.mos