+
    Ñåûj,\  ã                   óŽ  € ^ RI HtHt ^ RIHt ^ RIHt ^ RIt^ RIHt ^ RI	H
t
HtHt . RJOt]! R4      t]! ]! R4      ]
R	R
/4      tR R ltR R lt]! RRP$                  ! RK/ ]B 4      RRRRRRRRR]P&                  RRRR/R R ll4       t]! RRP$                  ! RK/ ]B 4      RRRRR]P&                  RRRR/R R  ll4       t]! R!R"P$                  ! RK/ ]B 4      R#RRRRRR]P&                  RRRR/R$ R% ll4       t]! R&R'P$                  ! RK/ ]B 4      R(R)RRRRR]P&                  RRRR/R* R+ ll4       t]! R,R-P$                  ! RK/ ]B 4      RRRRR]P&                  RRRR/R. R/ ll4       t]! R0R1P$                  ! RK/ ]B 4      RRRRR]P&                  RRRR/R2 R3 ll4       t]! R4R5P$                  ! RK/ ]B 4      RRRRR]P&                  RRRR/R6 R7 ll4       t]! R8R9P$                  ! RK/ ]B 4      RRRRR]P&                  RRRR/R: R; ll4       t]! R<R=P$                  ! RK/ ]B 4      RRRRR]P&                  RRRR/R> R? ll4       t]! R@RAP$                  ! RK/ ]B 4      RBRCRRRRR]P&                  RRRR/RD RE ll4       t]! RFRGP$                  ! RK/ ]B 4      RRRRR]P&                  RRRR/RH RI ll4       tR# )Lé    )ÚCallableÚIterable)Úsqrt)ÚTypeVarN)ÚTensor)Úfactory_common_argsÚmerge_dictsÚparse_kwargsÚ_Ta6  
    M (int): the length of the window.
        In other words, the number of points of the returned window.
    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`.
Únormalizationz�The window is normalized to 1 (maximum value is 1). However, the 1 doesn't appear if :attr:`M` is even and :attr:`sym` is `True`.c                óT   € V ^8„  d   QhR\         R\        \        .\        3,          /# )é   ÚargsÚreturn)Ústrr   r   )Úformats   "ÚXC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\torch\signal\windows\windows.pyÚ__annotate__r   ,   s%   € ÷ ñ ”sð œx¬¨¬b¨Õ1ñ ó    c                 ó   a € R V 3R llpV# )a  Adds docstrings to a given decorated function.

Especially useful when the docstrings need string interpolation, e.g., with
str.format().
REMARK: Do not use this function if the docstring doesn't need string
interpolation, just write a conventional docstring.

Args:
    args (str):
c                ó0   € V ^8„  d   QhR\         R\         /# )r   Úor   )r   )r   s   "r   r   Ú!_add_docstr.<locals>.__annotate__8   s   € ÷ ñ ”Rð œBñ r   c                 ó4   <€ R P                  S4      V n        V # )Ú )ÚjoinÚ__doc__)r   r   s   &€r   Ú	decoratorÚ_add_docstr.<locals>.decorator8   s   ø€ Ø—G‘G˜D“MˆŒ	Øˆr   © )r   r   s   j r   Ú_add_docstrr!   ,   s   ø€ ÷ð ð Ðr   c          
      ót   € V ^8„  d   QhR\         R\        R\        P                  R\        P                  RR/# )r   Úfunction_nameÚMÚdtypeÚlayoutr   N)r   ÚintÚtorchr%   r&   )r   s   "r   r   r   ?   s<   € ÷ 
ñ 
Üð
Üð
Ü',§{¡{ð
Ü<A¿L¹Lð
à	ñ
r   c                óæ   € V^ 8  d   \        V  RV 24      hV\        P                  Jd   \        V  RV 24      hV\        P                  \        P                  39  d   \        V  RV 24      hR# )ag  Performs common checks for all the defined windows.
This function should be called before computing any window.

Args:
    function_name (str): name of the window function.
    M (int): length of the window.
    dtype (:class:`torch.dtype`): the desired data type of returned tensor.
    layout (:class:`torch.layout`): the desired layout of returned tensor.
z, requires non-negative window length, got M=z/ is implemented for strided tensors only, got: z) expects float32 or float64 dtypes, got: N)Ú
ValueErrorr(   ÚstridedÚfloat32Úfloat64)r#   r$   r%   r&   s   &&&&r   Ú_window_function_checksr.   ?   s‰   € ð 	ˆ1„uÜØˆoÐIÈ!ÈÐMó
ð 	
ð ”U—]‘]Ó"ÜØˆoÐLÈVÈHÐUó
ð 	
ð ”U—]‘]¤E§M¡MÐ2Ô2ÜØˆoÐFÀuÀgÐNó
ð 	
ñ 3r   zì
Computes a window with an exponential waveform.
Also known as Poisson window.

The exponential window is defined as follows:

.. math::
    w_n = \exp{\left(-\frac{|n - c|}{\tau}\right)}

where `c` is the ``center`` of the window.
    aF  

{normalization}

Args:
    {M}

Keyword args:
    center (float, optional): where the center of the window will be located.
        Default: `M / 2` if `sym` is `False`, else `(M - 1) / 2`.
    tau (float, optional): the decay value.
        Tau is generally associated with a percentage, that means, that the value should
        vary within the interval (0, 100]. If tau is 100, it is considered the uniform window.
        Default: 1.0.
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric exponential window of size 10 and with a decay value of 1.0.
    >>> # The center will be at (M - 1) / 2, where M is 10.
    >>> torch.signal.windows.exponential(10)
    tensor([0.0111, 0.0302, 0.0821, 0.2231, 0.6065, 0.6065, 0.2231, 0.0821, 0.0302, 0.0111])

    >>> # Generates a periodic exponential window and decay factor equal to .5
    >>> torch.signal.windows.exponential(10, sym=False,tau=.5)
    tensor([4.5400e-05, 3.3546e-04, 2.4788e-03, 1.8316e-02, 1.3534e-01, 1.0000e+00, 1.3534e-01, 1.8316e-02, 2.4788e-03, 3.3546e-04])
    ÚcenterÚtauç      ð?ÚsymTr%   r&   ÚdeviceÚrequires_gradFc                óê   € V ^8„  d   QhR\         R\        R,          R\        R\        R\        P                  R,          R\        P
                  R\        P                  R,          R	\        R
\        /	# )r   r$   r/   Nr0   r2   r%   r&   r3   r4   r   ©r'   ÚfloatÚboolr(   r%   r&   r3   r   )r   s   "r   r   r   …   s~   € ÷ *$ñ *$Ü
ð*$ô �D�Lð*$ô 
ð	*$ô
 
ð*$ô �;‰;˜Õð*$ô �L‰Lð*$ô �L‰L˜4Õð*$ô ð*$ô ñ*$r   c          
      ó  € Vf   \         P                  ! 4       p\        RWV4       V^ 8:  d   \        RV R24      hV'       d   Ve   \        R4      hV ^ 8X  d   \         P                  ! RWEWgR7      # Vf"   V'       g
   V ^8”  d   T MV ^,
          R,          p^V,          p\         P
                  ! V) V,          V) V ^,
          ,           V,          V VVVVR7      p	\         P                  ! \         P                  ! V	4      ) 4      # )	NÚexponentialzTau must be positive, got: ú	 instead.z)Center must be None for symmetric windows©r%   r&   r3   r4   ç       @©ÚstartÚendÚstepsr%   r&   r3   r4   ©r   )r(   Úget_default_dtyper.   r*   ÚemptyÚlinspaceÚexpÚabs)
r$   r/   r0   r2   r%   r&   r3   r4   ÚconstantÚks
   &$$$$$$$  r   r:   r:   Y   sð   € ðn ‚}Ü×'Ò'Ó)ˆä˜M¨1°VÔ<à
ˆa„xÜÐ6°s°e¸9ÐEÓFÐFç
ˆvÒ!ÜÐDÓEÐEàˆA„vÜ�{Š{Ø˜°Vô
ð 	
ð ‚~ß 1 q¤5‘!¨a°!­e°sÕ:ˆà�3�w€Hä�ŠØˆg˜Õ ØˆW˜˜A�Õ (Õ*ØØØØØ#ô	€Aô �9Š9”e—i’i “l�]Ó#Ð#r   aÒ  
Computes a window with a simple cosine waveform, following the same implementation as SciPy.
This window is also known as the sine window.

The cosine window is defined as follows:

.. math::
    w_n = \sin\left(\frac{\pi (n + 0.5)}{M}\right)

This formula differs from the typical cosine window formula by incorporating a 0.5 term in the numerator,
which shifts the sample positions. This adjustment results in a window that starts and ends with non-zero values.

aô  

{normalization}

Args:
    {M}

Keyword args:
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric cosine window.
    >>> torch.signal.windows.cosine(10)
    tensor([0.1564, 0.4540, 0.7071, 0.8910, 0.9877, 0.9877, 0.8910, 0.7071, 0.4540, 0.1564])

    >>> # Generates a periodic cosine window.
    >>> torch.signal.windows.cosine(10, sym=False)
    tensor([0.1423, 0.4154, 0.6549, 0.8413, 0.9595, 1.0000, 0.9595, 0.8413, 0.6549, 0.4154])
c                óÄ   € V ^8„  d   QhR\         R\        R\        P                  R,          R\        P                  R\        P
                  R,          R\        R\        /# ©	r   r$   r2   r%   Nr&   r3   r4   r   ©r'   r8   r(   r%   r&   r3   r   )r   s   "r   r   r   Û   sf   € ÷  ñ  Ü
ð ô 
ð ô �;‰;˜Õð	 ô
 �L‰Lð ô �L‰L˜4Õð ô ð ô ñ r   c          
      óŠ  € Vf   \         P                  ! 4       p\        RWV4       V ^ 8X  d   \         P                  ! RW#WER7      # Rp\         P                  V'       g   V ^8”  d
   V ^,           MT ,          p\         P
                  ! Wg,          W`^,
          ,           V,          V VVVVR7      p\         P                  ! V4      # )NÚcosiner<   ç      à?r>   rB   )r(   rC   r.   rD   ÚpirE   Úsin©	r$   r2   r%   r&   r3   r4   r?   rH   rI   s	   &$$$$$   r   rN   rN   ²   s§   € ðd ‚}Ü×'Ò'Ó)ˆä˜H a°Ô7àˆA„vÜ�{Š{Ø˜°Vô
ð 	
ð €EÜ�x‰x¯°°A´˜1˜qž5¸1Õ=€Hä�ŠØÕØ˜!•e�_ Õ(ØØØØØ#ô	€Aô �9Š9�Q‹<Ðr   z§
Computes a window with a gaussian waveform.

The gaussian window is defined as follows:

.. math::
    w_n = \exp{\left(-\left(\frac{n}{2\sigma}\right)^2\right)}
    a   

{normalization}

Args:
    {M}

Keyword args:
    std (float, optional): the standard deviation of the gaussian. It controls how narrow or wide the window is.
        Default: 1.0.
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric gaussian window with a standard deviation of 1.0.
    >>> torch.signal.windows.gaussian(10)
    tensor([4.0065e-05, 2.1875e-03, 4.3937e-02, 3.2465e-01, 8.8250e-01, 8.8250e-01, 3.2465e-01, 4.3937e-02, 2.1875e-03, 4.0065e-05])

    >>> # Generates a periodic gaussian window and standard deviation equal to 0.9.
    >>> torch.signal.windows.gaussian(10, sym=False,std=0.9)
    tensor([1.9858e-07, 5.1365e-05, 3.8659e-03, 8.4658e-02, 5.3941e-01, 1.0000e+00, 5.3941e-01, 8.4658e-02, 3.8659e-03, 5.1365e-05])
Ústdc                óÐ   € V ^8„  d   QhR\         R\        R\        R\        P                  R,          R\        P
                  R\        P                  R,          R\        R	\        /# )
r   r$   rS   r2   r%   Nr&   r3   r4   r   r6   )r   s   "r   r   r   $  sp   € ÷ %ñ %Ü
ð%ô 
ð%ô 
ð	%ô
 �;‰;˜Õð%ô �L‰Lð%ô �L‰L˜4Õð%ô ð%ô ñ%r   c          
      óÚ  € Vf   \         P                  ! 4       p\        RWV4       V^ 8:  d   \        RV R24      hV ^ 8X  d   \         P                  ! RW4WVR7      # V'       g
   V ^8”  d   T MV ^,
          ) R,          p^V\        ^4      ,          ,          p\         P                  ! Wx,          Wp^,
          ,           V,          V VVVVR7      p	\         P                  ! V	^,          ) 4      # )NÚgaussianz*Standard deviation must be positive, got: r;   r<   r=   r>   rB   )r(   rC   r.   r*   rD   r   rE   rF   )
r$   rS   r2   r%   r&   r3   r4   r?   rH   rI   s
   &$$$$$$   r   rV   rV   þ   sÖ   € ð` ‚}Ü×'Ò'Ó)ˆä˜J¨°&Ô9à
ˆa„xÜÐEÀcÀUÈ)ÐTÓUÐUàˆA„vÜ�{Š{Ø˜°Vô
ð 	
÷ ˜q 1œu‰a¨!¨a­%Ð0°3Õ6€Eà�Cœ$˜q›'•MÕ"€Hä�ŠØÕØ˜!•e�_ Õ(ØØØØØ#ô	€Aô �9Š9�q˜!•t�WÓÐr   aK  
Computes the Kaiser window.

The Kaiser window is defined as follows:

.. math::
    w_n = I_0 \left( \beta \sqrt{1 - \left( {\frac{n - N/2}{N/2}} \right) ^2 } \right) / I_0( \beta )

where ``I_0`` is the zeroth order modified Bessel function of the first kind (see :func:`torch.special.i0`), and
``N = M - 1 if sym else M``.
    aë  

{normalization}

Args:
    {M}

Keyword args:
    beta (float, optional): shape parameter for the window. Must be non-negative. Default: 12.0
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric Kaiser window with a shape parameter of 12.0.
    >>> torch.signal.windows.kaiser(5)
    tensor([4.0065e-05, 2.1875e-03, 4.3937e-02, 3.2465e-01, 8.8250e-01, 8.8250e-01, 3.2465e-01, 4.3937e-02, 2.1875e-03, 4.0065e-05])
    >>> # Generates a periodic Kaiser window and shape parameter equal to 0.9.
    >>> torch.signal.windows.kaiser(5, sym=False, beta=0.9)
    tensor([1.9858e-07, 5.1365e-05, 3.8659e-03, 8.4658e-02, 5.3941e-01, 1.0000e+00, 5.3941e-01, 8.4658e-02, 3.8659e-03, 5.1365e-05])
Úbetag      (@c                óÐ   € V ^8„  d   QhR\         R\        R\        R\        P                  R,          R\        P
                  R\        P                  R,          R\        R	\        /# )
r   r$   rW   r2   r%   Nr&   r3   r4   r   r6   )r   s   "r   r   r   s  sp   € ÷ 6ñ 6Ü
ð6ô ð6ô 
ð	6ô
 �;‰;˜Õð6ô �L‰Lð6ô �L‰L˜4Õð6ô ð6ô ñ6r   c          
      óÐ  € Vf   \         P                  ! 4       p\        RWV4       V^ 8  d   \        RV R24      hV ^ 8X  d   \         P                  ! RW4WVR7      # V ^8X  d   \         P
                  ! R	W4WVR7      # \         P                  ! WVR7      pV) pRV,          V'       g   T MV ^,
          ,          p\         P                  ! VWp^,
          V,          ,           4      p	\         P                  ! VV	V VVVVR7      p
\         P                  ! \         P                  ! W,          \         P                  ! V
^4      ,
          4      4      \         P                  ! V4      ,          # )
NÚkaiserz beta must be non-negative, got: r;   r<   )r%   r3   r=   r>   rB   ©é   )r(   rC   r.   r*   rD   ÚonesÚtensorÚminimumrE   Úi0r   Úpow)r$   rW   r2   r%   r&   r3   r4   r?   rH   r@   rI   s   &$$$$$$    r   rZ   rZ   L  s5  € ðb ‚}Ü×'Ò'Ó)ˆä˜H a°Ô7àˆa„xÜÐ;¸D¸6ÀÐKÓLÐLàˆA„vÜ�{Š{Ø˜°Vô
ð 	
ð 	ˆA„vÜ�zŠzØ˜°Vô
ð 	
ô �<Š<˜°&Ô9€DàˆE€EØ�T�z§c™Q¨q°1­uÕ5€HÜ
�-Š-àà�Q•˜(Õ"Õ"ó	€Cô 	�ŠØØØØØØØ#ô	€Aô �8Š8”E—J’J˜t�{¬U¯YªY°q¸!«_Õ<Ó=Ó>ÄÇÂàóBõ ð r   zœ
Computes the Hamming window.

The Hamming window is defined as follows:

.. math::
    w_n = \alpha - \beta\ \cos \left( \frac{2 \pi n}{M - 1} \right)
    a¡  

{normalization}

Arguments:
    {M}

Keyword args:
    {sym}
    alpha (float, optional): The coefficient :math:`\alpha` in the equation above.
    beta (float, optional): The coefficient :math:`\beta` in the equation above.
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric Hamming window.
    >>> torch.signal.windows.hamming(10)
    tensor([0.0800, 0.1876, 0.4601, 0.7700, 0.9723, 0.9723, 0.7700, 0.4601, 0.1876, 0.0800])

    >>> # Generates a periodic Hamming window.
    >>> torch.signal.windows.hamming(10, sym=False)
    tensor([0.0800, 0.1679, 0.3979, 0.6821, 0.9121, 1.0000, 0.9121, 0.6821, 0.3979, 0.1679])
c                óÄ   € V ^8„  d   QhR\         R\        R\        P                  R,          R\        P                  R\        P
                  R,          R\        R\        /# rK   rL   )r   s   "r   r   r   Ð  sf   € ÷ ñ Ü
ðô 
ðô �;‰;˜Õð	ô
 �L‰Lðô �L‰L˜4Õðô ðô ñr   c          	      ó$   € \        V VVVVVR 7      # ))r2   r%   r&   r3   r4   ©Úgeneral_hamming©r$   r2   r%   r&   r3   r4   s   &$$$$$r   Úhammingrg   ¬  s$   € ôZ Ø	ØØØØØ#ôð r   zÔ
Computes the Hann window.

The Hann window is defined as follows:

.. math::
    w_n = \frac{1}{2}\ \left[1 - \cos \left( \frac{2 \pi n}{M - 1} \right)\right] =
    \sin^2 \left( \frac{\pi n}{M - 1} \right)
    añ  

{normalization}

Arguments:
    {M}

Keyword args:
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric Hann window.
    >>> torch.signal.windows.hann(10)
    tensor([0.0000, 0.1170, 0.4132, 0.7500, 0.9698, 0.9698, 0.7500, 0.4132, 0.1170, 0.0000])

    >>> # Generates a periodic Hann window.
    >>> torch.signal.windows.hann(10, sym=False)
    tensor([0.0000, 0.0955, 0.3455, 0.6545, 0.9045, 1.0000, 0.9045, 0.6545, 0.3455, 0.0955])
c                óÄ   € V ^8„  d   QhR\         R\        R\        P                  R,          R\        P                  R\        P
                  R,          R\        R\        /# rK   rL   )r   s   "r   r   r     óf   € ÷ ñ Ü
ðô 
ðô �;‰;˜Õð	ô
 �L‰Lðô �L‰L˜4Õðô ðô ñr   c          
      ó&   € \        V R VVVVVR7      # )rO   )Úalphar2   r%   r&   r3   r4   rd   rf   s   &$$$$$r   Úhannrl   ã  s'   € ôX Ø	ØØØØØØ#ôð r   zÊ
Computes the Blackman window.

The Blackman window is defined as follows:

.. math::
    w_n = 0.42 - 0.5 \cos \left( \frac{2 \pi n}{M - 1} \right) + 0.08 \cos \left( \frac{4 \pi n}{M - 1} \right)
    aá  

{normalization}

Arguments:
    {M}

Keyword args:
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric Blackman window.
    >>> torch.signal.windows.blackman(5)
    tensor([-1.4901e-08,  3.4000e-01,  1.0000e+00,  3.4000e-01, -1.4901e-08])

    >>> # Generates a periodic Blackman window.
    >>> torch.signal.windows.blackman(5, sym=False)
    tensor([-1.4901e-08,  2.0077e-01,  8.4923e-01,  8.4923e-01,  2.0077e-01])
c                óÄ   € V ^8„  d   QhR\         R\        R\        P                  R,          R\        P                  R\        P
                  R,          R\        R\        /# rK   rL   )r   s   "r   r   r   <  sf   € ÷ ñ Ü
ðô 
ðô �;‰;˜Õð	ô
 �L‰Lðô �L‰L˜4Õðô ðô ñr   c          
      óv   € Vf   \         P                  ! 4       p\        RWV4       \        V . ROVVVVVR7      # )NÚblackman©Úar2   r%   r&   r3   r4   )gáz®GáÚ?rO   g{®Gáz´?)r(   rC   r.   Úgeneral_cosinerf   s   &$$$$$r   ro   ro     sF   € ðV ‚}Ü×'Ò'Ó)ˆä˜J¨°&Ô9äØ	Ú
ØØØØØ#ôð r   a4  
Computes the Bartlett window.

The Bartlett window is defined as follows:

.. math::
    w_n = 1 - \left| \frac{2n}{M - 1} - 1 \right| = \begin{cases}
        \frac{2n}{M - 1} & \text{if } 0 \leq n \leq \frac{M - 1}{2} \\
        2 - \frac{2n}{M - 1} & \text{if } \frac{M - 1}{2} < n < M \\ \end{cases}
    a  

{normalization}

Arguments:
    {M}

Keyword args:
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric Bartlett window.
    >>> torch.signal.windows.bartlett(10)
    tensor([0.0000, 0.2222, 0.4444, 0.6667, 0.8889, 0.8889, 0.6667, 0.4444, 0.2222, 0.0000])

    >>> # Generates a periodic Bartlett window.
    >>> torch.signal.windows.bartlett(10, sym=False)
    tensor([0.0000, 0.2000, 0.4000, 0.6000, 0.8000, 1.0000, 0.8000, 0.6000, 0.4000, 0.2000])
c                óÄ   € V ^8„  d   QhR\         R\        R\        P                  R,          R\        P                  R\        P
                  R,          R\        R\        /# rK   rL   )r   s   "r   r   r   y  sf   € ÷ %ñ %Ü
ð%ô 
ð%ô �;‰;˜Õð	%ô
 �L‰Lð%ô �L‰L˜4Õð%ô ð%ô ñ%r   c          
      ó¢  € Vf   \         P                  ! 4       p\        RWV4       V ^ 8X  d   \         P                  ! RW#WER7      # V ^8X  d   \         P                  ! RW#WER7      # Rp^V'       g   T MV ^,
          ,          p\         P
                  ! VW`^,
          V,          ,           V VVVVR7      p^\         P                  ! V4      ,
          # )NÚbartlettr<   r>   rB   r[   éÿÿÿÿ)r(   rC   r.   rD   r]   rE   rG   rR   s	   &$$$$$   r   ru   ru   U  sÁ   € ðZ ‚}Ü×'Ò'Ó)ˆä˜J¨°&Ô9àˆA„vÜ�{Š{Ø˜°Vô
ð 	
ð 	ˆA„vÜ�zŠzØ˜°Vô
ð 	
ð €EØŸS‘A a¨!¥eÕ,€Hä�ŠØØ˜•U˜hÕ&Õ&ØØØØØ#ô	€Að Œu�yŠy˜‹|ÕÐr   z¹
Computes the general cosine window.

The general cosine window is defined as follows:

.. math::
    w_n = \sum^{M-1}_{i=0} (-1)^i a_i \cos{ \left( \frac{2 \pi i n}{M - 1}\right)}
    aÂ  

{normalization}

Arguments:
    {M}

Keyword args:
    a (Iterable): the coefficients associated to each of the cosine functions.
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric general cosine window with 3 coefficients.
    >>> torch.signal.windows.general_cosine(10, a=[0.46, 0.23, 0.31], sym=True)
    tensor([0.5400, 0.3376, 0.1288, 0.4200, 0.9136, 0.9136, 0.4200, 0.1288, 0.3376, 0.5400])

    >>> # Generates a periodic general cosine window with 2 coefficients.
    >>> torch.signal.windows.general_cosine(10, a=[0.5, 1 - 0.5], sym=False)
    tensor([0.0000, 0.0955, 0.3455, 0.6545, 0.9045, 1.0000, 0.9045, 0.6545, 0.3455, 0.0955])
c                óÄ   € V ^8„  d   QhR\         R\        R\        P                  R,          R\        P                  R\        P
                  R,          R\        R\        /# )	r   rq   r2   r%   Nr&   r3   r4   r   )r   r8   r(   r%   r&   r3   r   )r   s   "r   r   r   Ä  sq   € ÷ 7Gñ 7Gô ð7Gô 
ð	7Gô
 �;‰;˜Õð7Gô �L‰Lð7Gô �L‰L˜4Õð7Gô ð7Gô ñ7Gr   c          
      ó´  € Vf   \         P                  ! 4       p\        RWV4       V ^ 8X  d   \         P                  ! RW4WVR7      # V ^8X  d   \         P                  ! R	W4WVR7      # \        V\        4      '       g   \        R4      hV'       g   \        R4      h^\         P                  ,          V'       g   T MV ^,
          ,          p\         P                  ! ^ V ^,
          V,          V VVVVR7      p\         P                  ! \        V4       U	U
u. uF  w  ršR
V	,          V
,          NK  	  up
p	VVVR7      p\         P                  ! VP                  ^ ,          VP                  VP                   VP"                  R7      p	VP%                  R
4      \         P&                  ! V	P%                  R
4      V,          4      ,          P)                  ^ 4      # u up
p	i )Nrr   r<   z!Coefficients must be a list/tuplezCoefficients cannot be emptyr>   )r3   r%   r4   )r%   r3   r4   rB   r[   rv   )r(   rC   r.   rD   r]   Ú
isinstancer   Ú	TypeErrorr*   rP   rE   r^   Ú	enumerateÚarangeÚshaper%   r3   r4   Ú	unsqueezeÚcosÚsum)r$   rq   r2   r%   r&   r3   r4   rH   rI   ÚiÚwÚa_is   &$$$$$$     r   rr   rr   ¡  s~  € ðZ ‚}Ü×'Ò'Ó)ˆäÐ,¨a¸Ô?àˆA„vÜ�{Š{Ø˜°Vô
ð 	
ð 	ˆA„vÜ�zŠzØ˜°Vô
ð 	
ô �aœ×"Ò"ÜÐ;Ó<Ð<çÜÐ7Ó8Ð8à”5—8‘8�|¯™q°°QµÕ7€Hä�ŠØØ��U�hÕØØØØØ#ô	€Aô �,Š,Ü#,¨Q¤<Ô0¡<™4˜1ˆ"���Q�ˆ¡<Ò0ØØØ#ô	€Cô 	�ŠØ�	‰	�!�Ø�i‰iØ�z‰zØ×'Ñ'ô		€Að �M‰M˜"Ó¤§	¢	¨!¯+©+°b«/¸AÕ*=Ó >Õ>×CÑCÀAÓFÐFùó 	1s   ÄG
z²
Computes the general Hamming window.

The general Hamming window is defined as follows:

.. math::
    w_n = \alpha - (1 - \alpha) \cos{ \left( \frac{2 \pi n}{M-1} \right)}
    a£  

{normalization}

Arguments:
    {M}

Keyword args:
    alpha (float, optional): the window coefficient. Default: 0.54.
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

Examples::

    >>> # Generates a symmetric Hamming window with the general Hamming window.
    >>> torch.signal.windows.general_hamming(10, sym=True)
    tensor([0.0800, 0.1876, 0.4601, 0.7700, 0.9723, 0.9723, 0.7700, 0.4601, 0.1876, 0.0800])

    >>> # Generates a periodic Hann window with the general Hamming window.
    >>> torch.signal.windows.general_hamming(10, alpha=0.5, sym=False)
    tensor([0.0000, 0.0955, 0.3455, 0.6545, 0.9045, 1.0000, 0.9045, 0.6545, 0.3455, 0.0955])
rk   gHáz®Gá?c                óÄ   € V ^8„  d   QhR\         R\        R\        P                  R,          R\        P                  R\        P
                  R,          R\        R\        /# )	r   rk   r2   r%   Nr&   r3   r4   r   )r7   r8   r(   r%   r&   r3   r   )r   s   "r   r   r   !  sh   € ÷ ñ ô ðô 
ð	ô
 �;‰;˜Õðô �L‰Lðô �L‰L˜4Õðô ðô ñr   c          
      ó8   € \        V VR V,
          .VVVVVR7      # )r1   rp   ©rr   )r$   rk   r2   r%   r&   r3   r4   s   &$$$$$$r   re   re   þ  s0   € ôZ Ø	Ø�#˜•+Ð
ØØØØØ#ôð r   zè
Computes the minimum 4-term Blackman-Harris window according to Nuttall.

.. math::
    w_n = 1 - 0.36358 \cos{(z_n)} + 0.48917 \cos{(2z_n)} - 0.13659 \cos{(3z_n)} + 0.01064 \cos{(4z_n)}

where :math:`z_n = \frac{2 \pi n}{M}`.
    aÞ  

{normalization}

Arguments:
    {M}

Keyword args:
    {sym}
    {dtype}
    {layout}
    {device}
    {requires_grad}

References::

    - A. Nuttall, "Some windows with very good sidelobe behavior,"
      IEEE Transactions on Acoustics, Speech, and Signal Processing, vol. 29, no. 1, pp. 84-91,
      Feb 1981. https://doi.org/10.1109/TASSP.1981.1163506

    - Heinzel G. et al., "Spectrum and spectral density estimation by the Discrete Fourier transform (DFT),
      including a comprehensive list of window functions and some new flat-top windows",
      February 15, 2002 https://holometer.fnal.gov/GH_FFT.pdf

Examples::

    >>> # Generates a symmetric Nuttall window.
    >>> torch.signal.windows.general_hamming(5, sym=True)
    tensor([3.6280e-04, 2.2698e-01, 1.0000e+00, 2.2698e-01, 3.6280e-04])

    >>> # Generates a periodic Nuttall window.
    >>> torch.signal.windows.general_hamming(5, sym=False)
    tensor([3.6280e-04, 1.1052e-01, 7.9826e-01, 7.9826e-01, 1.1052e-01])
c                óÄ   € V ^8„  d   QhR\         R\        R\        P                  R,          R\        P                  R\        P
                  R,          R\        R\        /# rK   rL   )r   s   "r   r   r   b  ri   r   c          
      ó*   € \        V . ROVVVVVR7      # )ç¹zíD×?rp   )r‰   g;%¯Nß?g¡1“¨|Á?gžòC Ë…?r†   rf   s   &$$$$$r   ÚnuttallrŠ   6  s'   € ôj Ø	Ú
6ØØØØØ#ôð r   )ru   ro   rN   r:   rV   rr   re   rg   rl   rZ   rŠ   r    )Úcollections.abcr   r   Úmathr   Útypingr   r(   r   Útorch._torch_docsr   r	   r
   Ú__all__r   Úwindow_common_argsr!   r.   r   r+   r:   rN   rV   rZ   rg   rl   ro   ru   rr   re   rŠ   r    r   r   Ú<module>r‘      sÀ  ðç .Ý Ý ã Ý ß LÑ Lò€ñ ˆTƒ]€á Ùð	óð àð 7ðóÐ õ"õ&
ñ4 ð
ð÷< 	‰ð=ñ %ð< $ñ=%ó+ðX*$ð  ð*$ð ð	*$ð
 ð*$ð !%ð*$ð !Ÿ=™=ð*$ð #'ð*$ð  ö*$óY+ðX*$ñZ ðð÷. �Fð/ñ ð0 ñ1ó(ðR ð ð ð !%ð	 ð
 !Ÿ=™=ð ð #'ð ð  ö óS(ðR ñF ðð÷2 �Fð3ñ ð4 ñ5ó%ðL%ð ð%ð ð	%ð
 !%ð%ð !Ÿ=™=ð%ð #'ð%ð  ö%óM%ðL%ñP ð
ð÷. �Fð/ñ ð0 ñ1ó&ðN6ð ð6ð ð	6ð
 !%ð6ð !Ÿ=™=ð6ð #'ð6ð  ö6óO&ðN6ñr ðð÷2 �Fð3ñ !ð2  ñ3!ó#ðHð ðð !%ð	ð
 !Ÿ=™=ðð #'ðð  öóI#ðHñ& ðð÷. �Fð/ñ !ð.  ñ/!ó"ðFð ðð !%ð	ð
 !Ÿ=™=ðð #'ðð  öóG"ðFñ( ðð÷. �Fð/ñ !ð.  ñ/!ó!ðDð ðð !%ð	ð
 !Ÿ=™=ðð #'ðð  öóE!ðDñ2 ð	ð÷. �Fð/ñ !ð.  ñ/!ó#ðH%ð ð%ð !%ð	%ð
 !Ÿ=™=ð%ð #'ð%ð  ö%óI#ðH%ñP ðð÷0 �Fð1ñ !ð0  ñ1!ó"ðF7Gð ð	7Gð
 !%ð7Gð !Ÿ=™=ð7Gð #'ð7Gð  ö7GóG"ðF7Gñt ðð÷0 �Fð1ñ !ð0  ñ1!ó"ðFð ðð ð	ð
 !%ðð !Ÿ=™=ðð #'ðð  öóG"ðFñ* ðð!÷B �FðC!ñ !!ðB  ñC!!ó+ðXð ðð !%ð	ð
 !Ÿ=™=ðð #'ðð  öóY+òXr   