Repository: scipy/scipy
File: scipy/signal/windows/_windows.py (Python)

Code before:
    `kaiser` / ``('kaiser', beta)``:
        Kaiser window with shape parameter ``beta`` (aliases: ``'ksr'``)
    `kaiser_bessel_derived` / ``('kaiser bessel derived', beta)``:
        Kaiser-Bessel derived window with shape parameter ``beta``
        (aliases: ``'kaiser_bessel_derived', 'kbd'``)
    `lanczos` / ``'lanczos'``:
        Lanczos / sinc window (aliases: ``'sinc'``)
    `nuttall`/ ``'nuttall'``:
        Minimum 4-term Blackman-Harris window according to Nuttal
        (aliases: ``'nutl', 'nut'``)
    `parzen` / ``'parzen'``:
        Parzen window (aliases: ``'parz', 'par'``)
    `taylor` / ``'taylor'`` / (``'taylor', nbar, sll, norm)``:
        Taylor window with ``nbar`` adjascent sidelobes (default: ``4``)), ``sll`` dB
        suppression level (default: ``30``) and boolean value ``norm``
        (default: ``True``) (aliases: ``taylorwin``)
    `triang`/ ``'triangle'``:
        Triangle window (aliases: ``'triang', 'tri'``)
    `tukey` / ``'tukey'`` / ``('tukey', alpha)``:
        Tukey window with shape parameter ``alpha`` (default: ``0.5``)
        (aliases: ``'tuk'``)


    Examples
    --------
    This example shows a different usages of the `window` parameter:

    >>> from scipy.signal import get_window
    >>> get_window('triang', 7)
    array([ 0.125,  0.375,  0.625,  0.875,  0.875,  0.625,  0.375])
    >>> get_window(('exponential', None, 1.), 9)
    array([ 0.011109  ,  0.03019738,  0.082085  ,  0.22313016,  0.60653066,
            0.60653066,  0.22313016,  0.082085  ,  0.03019738])
    >>> get_window(('kaiser', 4.0), 9)
    array([ 0.08848053,  0.29425961,  0.56437221,  0.82160913,  0.97885093,
            0.97885093,  0.82160913,  0.56437221,  0.29425961])
    >>> get_window(4.0, 9)  # same as previous call
    array([ 0.08848053,  0.29425961,  0.56437221,  0.82160913,  0.97885093,
            0.97885093,  0.82160913,  0.56437221,  0.29425961])

    The following snippet shows different ways to create identical symmetric and
    periodic Bartlett windows:

    >>> from scipy.signal import get_window, windows
    >>> # Symmetric window:
    >>> windows.bartlett(5)  # Parameter `sym` defaults to True
    array([0. , 0.5, 1. , 0.5, 0. ])
    >>> get_window('bartlett', 5, fftbins=False)
    array([0. , 0.5, 1. , 0.5, 0. ])
    >>> get_window('bartlett_symmetric', 5)
    array([0. , 0.5, 1. , 0.5, 0. ])

Review comment (suggestion):
```suggestion
    This example shows different usages of the `window` parameter:
```

Code after:
    `kaiser` / ``('kaiser', beta)``:
        Kaiser window with shape parameter ``beta`` (aliases: ``'ksr'``)
    `kaiser_bessel_derived` / ``('kaiser bessel derived', beta)``:
        Kaiser-Bessel derived window with shape parameter ``beta``
        (aliases: ``'kaiser_bessel_derived', 'kbd'``)
    `lanczos` / ``'lanczos'``:
        Lanczos / sinc window (aliases: ``'sinc'``)
    `nuttall`/ ``'nuttall'``:
        Minimum 4-term Blackman-Harris window according to Nuttall
        (aliases: ``'nutl', 'nut'``)
    `parzen` / ``'parzen'``:
        Parzen window (aliases: ``'parz', 'par'``)
    `taylor` / ``'taylor'`` / (``'taylor', nbar, sll, norm)``:
        Taylor window with ``nbar`` adjascent sidelobes (default: ``4``)), ``sll`` dB
        suppression level (default: ``30``) and boolean value ``norm``
        (default: ``True``) (aliases: ``taylorwin``)
    `triang`/ ``'triangle'``:
        Triangle window (aliases: ``'triang', 'tri'``)
    `tukey` / ``'tukey'`` / ``('tukey', alpha)``:
        Tukey window with shape parameter ``alpha`` (default: ``0.5``)
        (aliases: ``'tuk'``)


    Examples
    --------
    This example shows different usages of the `window` parameter:

    >>> from scipy.signal import get_window
    >>> get_window('triang', 7)
    array([ 0.125,  0.375,  0.625,  0.875,  0.875,  0.625,  0.375])
    >>> get_window(('exponential', None, 1.), 9)
    array([ 0.011109  ,  0.03019738,  0.082085  ,  0.22313016,  0.60653066,
            0.60653066,  0.22313016,  0.082085  ,  0.03019738])
    >>> get_window(('kaiser', 4.0), 9)
    array([ 0.08848053,  0.29425961,  0.56437221,  0.82160913,  0.97885093,
            0.97885093,  0.82160913,  0.56437221,  0.29425961])
    >>> get_window(4.0, 9)  # same as previous call
    array([ 0.08848053,  0.29425961,  0.56437221,  0.82160913,  0.97885093,
            0.97885093,  0.82160913,  0.56437221,  0.29425961])

    The following snippet shows different ways to create identical symmetric and
    periodic Bartlett windows:

    >>> from scipy.signal import get_window, windows
    >>> # Symmetric window:
    >>> windows.bartlett(5)  # Parameter `sym` defaults to True
    array([0. , 0.5, 1. , 0.5, 0. ])
    >>> get_window('bartlett', 5, fftbins=False)
    array([0. , 0.5, 1. , 0.5, 0. ])
    >>> get_window('bartlett_symmetric', 5)
    array([0. , 0.5, 1. , 0.5, 0. ])