def frequency(self, w, s=1.0):
"""Frequency representation of Paul.
Parameters
----------
w : float
Angular frequency. If `s` is not specified, i.e. set to 1,
this can be used as the non-dimensional angular
frequency w * s.
s : float
Scaling factor. Default is 1.
Returns
-------
out : complex
Value of the Paul wavelet at the given frequency
"""
m = self.m
x = w * s
# Heaviside mock
Hw = 0.5 * (np.sign(x) + 1)
# prefactor
const = 2 ** m / (m * factorial(2 * m - 1)) ** .5
functional_form = Hw * (x) ** m * np.exp(-x)
output = const * functional_form
return output
评论列表
文章目录