AdvancedNoise.Interpolators.Constant.interpolate

# .AdvancedNoise.Interpolators.Constant.interpolate

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

Generated at 2026-05-09T18:18:56Z by OpenModelicaOpenModelica 1.26.7 using GenerateDoc.mos