1
$\begingroup$

I am running a WT using pywt.wavedec on a gait signal (accelerometer and gyroscope data), I'm setting level to 5 and using a db4 Wavelet. I am wondering why we only get the approximation coefficient cAn (cA5 in my case) returned from the pywt function. How do I access the rest of the approximation coefficients? Would appreciate the help, thank you!

$\endgroup$
1
  • $\begingroup$ Because that’s what this function outputs. Maybe this is what you’re looking for? $\endgroup$
    – Jdip
    Sep 12, 2023 at 22:36

1 Answer 1

0
$\begingroup$

Basically at level 5, cA4 decomposition on one level yields cA5 and cD5. This applies to all levels. Hence, you have all information for cA4 if you recompose one wavelet level from cA5 and cD5.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.