torch.signal.windows.general_hamming
torch.signal.windows.general_hamming(M, *, alpha=0.54, sym=True, dtype=None, layout=torch.strided, device=None, requires_grad=False)
Computes the general Hamming window.
The general Hamming window is defined as follows:
  w_n = \alpha - (1 - \alpha) \cos{ \left( \frac{2 \pi n}{M-1}
  \right)}

The window is normalized to 1 (maximum value is 1). However, the 1
   doesn't appear if "M" is even and "sym" is True.
Parameters:
      M (int) -- the length of the window. In other words, the
      number of points of the returned window.
Keyword Arguments:
      * alpha (float, optional) -- the window coefficient.
        Default: 0.54.
  * **sym** (*bool**, **optional*) -- If *False*, returns a
    periodic window suitable for use in spectral analysis. If
    *True*, returns a symmetric window suitable for use in filter
    design. Default: *True*.
