msummersgill / RfCWT

R package porting the fast Continuous Wavelet Transform (fCWT)
0 stars 0 forks source link

Other mother wavelets #5

Open Antguz opened 1 month ago

Antguz commented 1 month ago

Hi,

Really fast package. This is a request not an issue. Is there any chance to add other types of mother wavelets like Gaussian where we can define the variance?

Or is there any way that you could provide guide in how add other types of wavelets in your framework?

Regards.

AG.

msummersgill commented 1 month ago

Thanks for your interest! The performance of this package is 100% standing on the shoulders of others - in particular, the fCWT library referenced in the README - that provide the underlying C++ source code. That package currently only exposes a header API for Morlet Wavelets, so the best place to start would be understanding how the authors of that package optimized their Morlet implementation and then try to translate that to your desired mother wavelet. Once the C++ implementation is done, adding an R wrapper is the trivial part that I would be happy to assist with if needed! I'd also hope that if you implemented a performant C++ execution for a non-Morlet case, the upstream fCWT authors might be receptive to a PR that could contribute back to the upstream project!