pwtools.signal.lorentz¶
- pwtools.signal.lorentz(M, std=1.0, sym=True)[source]¶
Lorentz window (same as Cauchy function). Function skeleton stolen from scipy.signal.windows.gaussian().
The Lorentz function is
Here
and std = . Some definitions use instead of , but without 1/2 we get comparable peak width to Gaussians when using this window in convolutions, thusscipy.signal.gaussian(M, std=5)
is similar tolorentz(M, std=5)
.- Parameters:
M (int) – number of points
std (float) – spread parameter
sym (bool)
- Returns:
w
- Return type:
(M,)