pygwb.util.window_factors
- pygwb.util.window_factors(N, window_fftgram_dict={'window_fftgram': 'hann'}, overlap_factor=0.5)[source]
Calculate window factors. By default for a hann window with 50% overlap.
- Parameters:
N (
int) – Length of the window.window_fftgram_dict (
dictionary, optional) – Dictionary with window characteristics. Default iswindow_fftgram_dict={"window_fftgram": "hann"}overlap_factor (
float, optional) – Defines the overlap between consecutive data chunks used in the calculation. Default is 0.5.
- Returns:
- This functions returns the four window factors which correct the analysis for the effect of the window factor.
- w1w2bar:
float - w1w2squaredbar:
float - w1w2ovlbar:
float - w1w2squaredovlbar:
float
See also
scipy.signal.get_windowMore information here.