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