blockFIRbyCoefficients
FIR filter defined by coefficients
Extends from Clocked.RealSignals.Interfaces.PartialClockedSISO (Block with clocked single input and clocked single output Real signals).
Information
This block computes the output y as a linear combination of the input u and of its past values (= FIR filter):
y(i) = a[1]*u(i) + a[2]*u(i-1) + a[3]*u(i-2) + …
where y(i) and u(i) are the values of y and u at clock tick i and a[:] are the filter coefficients.
At the first clock tick i=1 the past values are filled with u at this clock tick (= steady state initialization).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Advanced | |||
| Real[size(a, 1) - 1] | cBufStart | ones(size(a, 1) - 1) | The u-buffer [u(i-1), u(i-2), ..., u(size(a,1)-1)] is initialized with u(i=1)*cBufStart |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u (from PartialClockedSISO) | Connector of clocked, Real input signal | |
| Modelica.Blocks.Interfaces.RealOutput | y (from PartialClockedSISO) | Connector of clocked, Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | a | {1/2, 1/2} | Coefficients of FIR filter |