torch.signal.windows.cosine
torch.signal.windows.cosine(M, *, sym=True, dtype=None, layout=torch.strided, device=None, requires_grad=False)
Computes a window with a simple cosine waveform. Also known as the
   sine window.
The cosine window is defined as follows:
  w_n = \cos{\left(\frac{\pi n}{M} - \frac{\pi}{2}\right)} =
  \sin{\left(\frac{\pi n}{M}\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:
      * 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.
  * **dtype** ("torch.dtype", optional) -- the desired data type
