get_window_nd

function of dascore.utils.signal source

get_window_nd(
    window: Any ,
    size: tuple[int, …] ,
)-> ‘np.ndarray’

Return a window along every axis of a tile: the outer product of its edges.

Parameters

Parameter Description
window The window; see get_window. One for every axis, or a list with
one per axis.
size The tile’s shape.

Examples

from dascore.utils.signal import get_window_nd
get_window_nd("hann", (8, 16)).shape
(8, 16)