The wavelet elements of a Daubechies kind 4 are
$$(0.4830, 0.8365, 0.2241, -0.1294) $$
Let's say I have the following signal array
$$ [1, 2, 0, 4, 5, 6, 8, 10 ]$$
Doing a Daubechies 4 DWT of this array is basically multiplying a $8\times 8$ array with a $8\times 1$ array (signal).
The $8\times1$ array will have the following elements, \begin{array}{cccc} 0.483 & 0.8365 &0.2241 &-0.1294 &0 &0 &0 &0 \\ 0 &0 &0.483 &0.8365 &0.2241 &-0.1294 &0 &0 \\ 0 &0 &0 &0 &0.483 &0.8365 &0.2241 &-0.1294 \\ 0.2241 &-0.1294 &0 &0 &0 &0 &0.483 &0.8365 \\ -0.1294 &-0.2241 &0.8365 &-0.483 &0 &0 &0 &0 \\ 0 &0 &-0.1294 &-0.2241 &0.8365 &-0.483 &0 &0 \\ 0 &0 &0 &0 &-0.1294 &-0.2241 &0.8365 &-0.483 \\ 0.8365 &-0.483 &0 &0 &0 &0 &-0.1294 &-0.2241 \\ \end{array}
The result will be
for the scaling function...
- 0 : 1.638357430415108
- 1 : 3.6903274198537357
- 2 : 7.9329681069730205
- 3 : 12.194191165473843
for the wavelet
- 0 : -2.5095489112134235
- 1 : 0.3882285676537802
- 2 : -0.1294095225512608
- 3 : -3.4061243833814774
Sorry but my math is rusty. I don't know the exact terms for these two elements that come from the DWT decomposition. Some call, scaling function and wavelet, others call trend subsignal and fluctuation, others call c and d... etc.
Anyway, now I need to perform another level of DWT DB4, what values do I send to the algorithm that will perform the decomposition? The scaling function c or the wavelet d?
and what about the inverse transformations?
aandb. Then I take one of these arrays and decompose again. I get two arrays with 2 elements, let's call itcandd. I cannot continue anymore because I have reached 2 elements. Now it is time to reverse it. I takecanddand inverse transform it, getting an array with 4 elements. How can I inverse transform again now? I only have one array with 4 elements... I need a second array of 4 elements. – Duck Mar 18 '19 at 20:40aandb. I did a second decomposition onaand gotcandd. For the inverse process I did a reconstruction usingcanddand gote. Then a second reconstruction usingeandband got the original signal.aandcare the low-pass andbanddhigh pass. Is that it? – Duck Mar 18 '19 at 21:34