This function generates the complex Shannon wavelet function. It has no scaling function. Since complex Shannon wavelet has theoretically unlimited support, the function range has to be defined with [low, high].
function wavXShannon import Modelica.Constants.*; import Modelica.Utilities.Streams; import Modelica_LinearSystems2.Math.Complex; input Real low = -20 "Lower boundary of the function"; input Real high = 20 "Higher boundary of the function"; input Integer points = 32 "Number of data points of the returned functions"; input Real fb = 1 "Band width, e.g. 1, 2"; input Real fc = 1 "Center frequency, e.g. 0.1, 0.5, 1, 1.5, ..."; output Real x[points] "Regular grid"; output Complex psi[points] "Wavelet function"; end wavXShannon;