.Modelica_Synchronous.WorkInProgress.Incubate.Internal.FIR_window

Information

Weighting windows are used for digital filter design or spectrum estimation (e.g. DFT) to increase the quality. In designing FIR-Filter the main role of windowing is to remove non-ideal effects caused by the endless number of filter coefficients (Gibbs phenomenon). Multiplying the coefficients with a window damps the coefficients at the beginning and at the end.

The function outputs a L-point vector for a given kind of window. The parameter "beta" is only needed by the Kaiser window. The types of windows are:

  1. Rectangle
  2. Bartlett
  3. Hann
  4. Hamming
  5. Blackman
  6. Kaiser

Interface

function FIR_window
  import Window = Modelica_Synchronous.WorkInProgress.Incubate.Types.FIR_Window;
  input Integer na "Number of points of weighting window vector";
  input Modelica_Synchronous.WorkInProgress.Incubate.Types.FIR_Window window = Window.Kaiser "Type of window";
  input Real beta = 2.12 "Beta-Parameter for Kaiser-window";
  output Real a[na] "Weighting window vector a[na]";
end FIR_window;

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos