You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement FFTLog on a distribution I have that is smooth in log space. It's pictured in the plot below. I take the FT (in the left hand panel), then try to take the IFT to recover the original function but it is not working as anticipated. Can you help me understand how to properly perform the IFT?
Working example:
logtmin = -15
logtmax = 5
n = 4000
mu = 0.5
q = 0
ft = 0
ftopt = 2
tdir = 1
dlogt = (logtmax - logtmin)/n
dlnr = dlogt*np.log(10.0)
ft, xsave = pfl.fhti(n, mu, dlnr, q, kropt=ftopt)
# original signal
fluxes = np.logspace(logtmin, logtmax, num=n)
a_t = np.sin(np.log(fluxes))
# FT
a_f = pfl.fftl(a_t.copy(), xsave, ft, tdir)
# IFT
a_tt = pfl.fftl(a_f.copy(), xsave, ft, -1)
The text was updated successfully, but these errors were encountered:
FFTLog needs sometimes a bit playing around and testing for good parameters, to make it work. Question: Did you have a look at the original documentation of FFTLog from Hamilton? I am referring in particular to the section 11. Troubleshooting, https://jila.colorado.edu/~ajsh/FFTLog/#trouble
I'm trying to implement FFTLog on a distribution I have that is smooth in log space. It's pictured in the plot below. I take the FT (in the left hand panel), then try to take the IFT to recover the original function but it is not working as anticipated. Can you help me understand how to properly perform the IFT?
Working example:
The text was updated successfully, but these errors were encountered: