This function generates the complex Gaussian wavelet function with the order up to 8. It has no scaling function. Since complex Gaussian wavelet has theoretically unlimited support, the function range has to be defined with [low, high].
function wavXGaussian import Modelica.Constants.*; import Modelica.Utilities.Streams; import Modelica_LinearSystems2.Math.Complex; input Real low = -5 "Lower boundary of the function"; input Real high = 5 "Higher boundary of the function"; input Integer order = 2 "Order of the derivative, <=8"; input Integer points = 32 "Number of data points of the returned functions"; output Real x[points] "Regular grid"; output Complex psi[points] "Wavelet function"; end wavXGaussian;