comment here

This commit is contained in:
ton
2023-03-18 20:03:34 +07:00
commit 4553a0a589
14513 changed files with 2685043 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
"""
Window functions (:mod:`scipy.signal.windows`)
==============================================
The suite of window functions for filtering and spectral estimation.
.. currentmodule:: scipy.signal.windows
.. autosummary::
:toctree: generated/
get_window -- Return a window of a given length and type.
barthann -- Bartlett-Hann window
bartlett -- Bartlett window
blackman -- Blackman window
blackmanharris -- Minimum 4-term Blackman-Harris window
bohman -- Bohman window
boxcar -- Boxcar window
chebwin -- Dolph-Chebyshev window
cosine -- Cosine window
dpss -- Discrete prolate spheroidal sequences
exponential -- Exponential window
flattop -- Flat top window
gaussian -- Gaussian window
general_cosine -- Generalized Cosine window
general_gaussian -- Generalized Gaussian window
general_hamming -- Generalized Hamming window
hamming -- Hamming window
hann -- Hann window
kaiser -- Kaiser window
kaiser_bessel_derived -- Kaiser-Bessel derived window
lanczos -- Lanczos window also known as a sinc window
nuttall -- Nuttall's minimum 4-term Blackman-Harris window
parzen -- Parzen window
taylor -- Taylor window
triang -- Triangular window
tukey -- Tukey window
"""
from ._windows import *
# Deprecated namespaces, to be removed in v2.0.0
from . import windows
__all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall',
'blackmanharris', 'flattop', 'bartlett', 'barthann',
'hamming', 'kaiser', 'kaiser_bessel_derived', 'gaussian',
'general_gaussian', 'general_cosine', 'general_hamming',
'chebwin', 'cosine', 'hann', 'exponential', 'tukey', 'taylor',
'get_window', 'dpss', 'lanczos']

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,32 @@
# This file is not meant for public use and will be removed in SciPy v2.0.0.
# Use the `scipy.signal.windows` namespace for importing the functions
# included below.
import warnings
from . import _windows
__all__ = [ # noqa: F822
'boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall',
'blackmanharris', 'flattop', 'bartlett', 'barthann',
'hamming', 'kaiser', 'gaussian', 'general_cosine',
'general_gaussian', 'general_hamming', 'chebwin', 'cosine',
'hann', 'exponential', 'tukey', 'taylor', 'dpss', 'get_window',
'linalg', 'sp_fft', 'k', 'v', 'key'
]
def __dir__():
return __all__
def __getattr__(name):
if name not in __all__:
raise AttributeError(
"scipy.signal.windows.windows is deprecated and has no attribute "
f"{name}. Try looking in scipy.signal.windows instead.")
warnings.warn(f"Please use `{name}` from the `scipy.signal.windows` namespace, "
"the `scipy.signal.windows.windows` namespace is deprecated.",
category=DeprecationWarning, stacklevel=2)
return getattr(_windows, name)