bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / fft / _fftlog_backend / fhtoffset
function
scipy.fft._fftlog_backend:fhtoffset
source: build-install/usr/lib/python3.14/site-packages/scipy/fft/_fftlog_backend.py:123
Signature
def fhtoffset(dln, mu, initial = 0.0, bias = 0.0)Summary
Return optimal offset for a fast Hankel transform.
Extended Summary
Returns an offset close to initial that fulfils the low-ringing condition of [1] for the fast Hankel transform fht with logarithmic spacing dln, order mu and bias bias.
Parameters
dln: floatUniform logarithmic spacing of the transform.
mu: floatOrder of the Hankel transform, any positive or negative real number.
initial: float, optionalInitial value for the offset. Returns the closest value that fulfils the low-ringing condition.
bias: float, optionalExponent of power law bias, any positive or negative real number.
Returns
offset: floatOptimal offset of the uniform logarithmic spacing of the transform that fulfils a low-ringing condition.
Notes
Array API Standard Support
fhtoffset is not in-scope for support of Python Array API Standard compatible backends other than NumPy.
See dev-arrayapi for more information.
Examples
from scipy.fft import fhtoffset dln = 0.1 mu = 2.0 initial = 0.5 bias = 0.0 offset = fhtoffset(dln, mu, initial, bias)✓
offset
✗np.float64(0.5454581477676637)
See also
- fht
Definition of the fast Hankel transform.
Aliases
scipy.fft.fhtoffset