Preprocessing helper functions

Small helper and utilities functions that don’t fit anywhere else.

spectrumkit.lib.preprocessing.hann_window(N: int) → ndarray[source]

Generate a Hann window of length N.

Parameters:

N (int) – Length of the window.

Returns:

The Hann window.

Return type:

numpy.ndarray