This function generates the biorthogonal spline wavelet filters, where Nr is the order of the reconstruction filters, and Nd the order of the decomposition filters.
Usually, lodFd and hidFr are used for decomposition, and lorFr and hirFd are used for reconstruction.
Nd | Nr |
1, 3, 5 | 1 |
2, 4, 6, 8 | 2 |
1, 3, 5, 7, 9 | 3 |
4 | 4 |
5 | 5 |
8 | 6 |
function wavBiorSpline import Modelica.Math.Vectors.reverse; input Integer Nd = 2 "Wavelet order for decomposition"; input Integer Nr = 2 "Wavelet order for reconstruction"; output Real Fd[:] "Scaling filter for decomposition"; output Real lodFd[:] "High pass filter for decomposition using filter Fd"; output Real hidFd[:] "Low pass filter for decomposition using filter Fd"; output Real lorFd[:] "High pass filter for reconstruction using filter Fd"; output Real hirFd[:] "Low pass filter for reconstruction using filter Fd"; output Real Fr[:] "Scaling filter for reconstruction"; output Real lodFr[:] "High pass filter for decomposition using filter Fr"; output Real hidFr[:] "Low pass filter for decomposition using filter Fr"; output Real lorFr[:] "High pass filter for reconstruction using filter Fr"; output Real hirFr[:] "Low pass filter for reconstruction using filter Fr"; end wavBiorSpline;