.Modelica_Requirements.Internal.SlidingWindow.push

Information

Store an element on the sliding window buffer and remove elements that are older as the window length

Interface

function push
  import Modelica.Utilities.Streams.print;
  input Buffer buffer "Memory of sliding window";
  input Real t "Time instant of v to be stored in buffer";
  input Boolean b = false "Value b at time instant t to be stored in buffer";
  output Buffer newBuffer "Updated memory of sliding window";
end push;

Generated at 2024-04-24T18:15:52Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos