ContinuousWavelets.jl icon indicating copy to clipboard operation
ContinuousWavelets.jl copied to clipboard

Simple access to a wavelet ?

Open SimonCoste opened this issue 2 years ago • 1 comments

Hi, is there any simple way to directly access any wavelet as a function ? For example,

m = Morlet()
m(0.5) # should output the value of the Morlet wavelet at the point 0.5.

Thanks ! Simon

SimonCoste avatar Sep 15 '23 08:09 SimonCoste

So there currently isn't a way to directly get the space domain of just the unscaled mother, as they're mostly represented internally in the Fourier domain. If you're looking for plotting purposes (e.g. the ones on the readme landing page), there's a space domain representation ψ given by

m = Morlet()
ψ, ω = computeWavelets(n, m; space = true)

though to get the values its computed at, you'd also have to convert the frequency ω to time.

I think probably the "proper" way to do this would be include the analytic version of the space domain, which in principle isn't too hard. Though the orthogonal wavelets, with their recursive definition, would be more involved.

dsweber2 avatar Oct 01 '23 21:10 dsweber2