I'm trying to compress data using wavelets and I wanted to do it with R. Could anyone tell me if there is such a tool?
Thanks in advance.
I'm trying to compress data using wavelets and I wanted to do it with R. Could anyone tell me if there is such a tool?
Thanks in advance.
The first step would be a wavelet transform. See (e.g.) the wavelet package. Once you have your wavelet coefficients, you will need to decide which and how to thresh to achieve compression. Unlike, fourier transforms, using a low-pass filter, will not guarantee any optimality. You could use some arbitrary threshing on the coefficients by trial and error. Here is a reference to a popular approach motivated by hypothesis testing. You might also want to have a look at the wavethresh package for more approaches for threshing. The compression is achieved by storing only the non threshed coefficients. For reconstruction, use the inverse (discrete) wavelet transform.
Not sure if this will be helpful, but a 2007 article in JSS introduces the waveD
library for R
.