get_window

function of dascore.utils.signal source

get_window(
    window: Any ,
    size: int ,
    fftbins: bool = False,
)-> ‘np.ndarray’

Return a window of size samples.

Parameters

Parameter Description
window A name from WINDOW_NAMES, any name or (name, parameter)
tuple scipy.signal.get_window accepts, or an array, which is
returned as it is if it has size samples.
size How many samples the window has.
fftbins If True, the window is periodic, as for a spectral estimate; the
default is symmetric, as for a taper.

Raises

ParameterError For a name nothing knows, or an array of the wrong length.