h = SmoothIdealLowPass.kernel(offset);
This function defines the kernel of the SmoothIdealLowPass interpolation. It uses the sinc function with a specified cut-off frequency.
function kernel extends Modelica.Icons.Function; import Modelica.Math.Special.sinc; import Modelica.Constants.pi; input Real t "The (scaled) time for sampling period=1"; input Modelica.Units.SI.Frequency f = 1/2 "The cut-off frequency of the filter"; output Real h "The impulse response of the convolution filter"; end kernel;
Date | Description | ||
---|---|---|---|
Sep. 4, 2015 |
|