This function generates the continuous Mexican Hat wavelet function. It has no scaling function. Since Mexican Hat wavelet has theoretically unlimited support, the function range has to be defined with [low, high].
function wavMexHat import Modelica.Constants.*; input Real low = -5 "Lower boundary of the returned function"; input Real high = 5 "Higher boundary of the returned function"; input Integer points = 32 "Number of the data points of the returned function"; output Real x[points] "Regular grid"; output Real psi[points] "The wavelet function"; end wavMexHat;