From: Johannes Korsawe on
Hello TideMan,

I have some similar problem to solve and would like to test your idea of wavelet decomposition and integrating every part for itself. I have already found that a pure butterworth filter would not work for my data, as the drift is very near to the relevant data in a frequency domain measure.

But i stick to the same question as Omio Abedin did: What parameters to use for the decomposition? I have not done that decomposition and transformations by now and would like to learn about it. My question(s):

1. Could you share some (pseudo-)code snippets on how to do the double time-integration in this wavelet-decomposed manner?

2. Or could you give some hints on what MATLAB commands to use, s.t. i can figure it out for myself.

I willl be grateful for any help. Thank you in advance.

Best Regards,
Johannes
From: TideMan on
On Jul 26, 6:18 pm, "Johannes Korsawe"
<johannes.korsawe.nos...(a)volkswagen.de> wrote:
> Hello TideMan,
>
> I have some similar problem to solve and would like to test your idea of wavelet decomposition and integrating every part for itself. I have already found that a pure butterworth filter would not work for my data, as the drift is very near to the relevant data in a frequency domain measure.
>
> But i stick to the same question as Omio Abedin did: What parameters to use for the decomposition? I have not done that decomposition and transformations by now and would like to learn about it. My question(s):
>
> 1. Could you share some (pseudo-)code snippets on how to do the double time-integration in this wavelet-decomposed manner?
>
> 2. Or could you give some hints on what MATLAB commands to use, s.t. i can figure it out for myself.
>
> I willl be grateful for any help. Thank you in advance.
>
> Best Regards,
> Johannes

First of all, you need the wavelet toolbox.
Then you decompose your signal using wavedec. Don't get hung up on
which mother wavelet to use. I use 'db5' for almost everything.
Decompose to the maximum level (determined from wmaxlev).
Now, you recompose the wavelet details individually using wrcoef.
And numerically integrate each one of them individually using cumtrapz
or whatever.
The wavelet details are orthogonal - prove this to yourself by
calculating their covariance - so can simply be added together, either
before or after integration.
You need to play with your data to find what works for you.
For my application, I discard all but a few details in the middle of
the range - the ones at low scale are noise I'm not interested in and
the ones at large scale are spurious instrument drift.