Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconstruction from coefficients i.e. inverse fCWT #36

Open
simonweppe opened this issue May 22, 2023 · 3 comments
Open

Reconstruction from coefficients i.e. inverse fCWT #36

simonweppe opened this issue May 22, 2023 · 3 comments

Comments

@simonweppe
Copy link

simonweppe commented May 22, 2023

Hi,
Thanks for the great tool..

Is there anyway to reconstruct the signal from the coefficients ?

For example

        #Initialize
        fs = 1000
        n = fs*100 #100 seconds
        ts = np.arange(n)

        #Generate linear chirp
        signal = np.sin(2*np.pi*((1+(20*ts)/n)*(ts/fs)))
        f0 = 1 #lowest frequency
        f1 = 101 #highest frequency
        fn = 200 #number of frequencies

        #Calculate CWT without plotting...
        freqs, out = fcwt.cwt(signal, fs, f0, f1, fn)
       
        # now reconstruct signal from coeff ?
       signal = fcwt.icwt(freqs,out)...or something along these lines ? 


@simonweppe simonweppe changed the title Reconstruction from coefficients Reconstruction from coefficients i.e. inverse fCWT May 22, 2023
@felixdollack
Copy link
Contributor

It seems that inverse fcwt is currently not implemented (see issue #23) and maybe not so high on the priority list (?).

@fastlib
Copy link
Owner

fastlib commented Jun 29, 2023

An inverse CWT is often not implemented by libaries (the popular Python library Pywavelets for example, does not implement an inverse CWT, only the inverse DWT which is basically just adding up all wavelets multiplied by their coefficient). As an CWT provides an redundant representation, an inverse is not trivial. However, I understand the usefulness of having a fast inverse CWT for actual signal processing, so I will update it on the priority list for the next major update.

@GUIMINLONG
Copy link

I also wondering how can I reconstruct the signal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants