pygwb.util.effective_welch_averages

pygwb.util.effective_welch_averages(nSamples, N, window_tuple='hann', overlap_factor=0.5)[source]

Calculate the “effective” number of averages used in Welch’s PSD estimate after taking into account windowing and overlap.

Parameters:
  • nSamples (int) – Number of samples to be used to estimate the PSD.

  • N (int) – Length of the window.

  • window_tuple (str or tuple, optional) – Window name or tuple as used in scipy.signal.get_window(). Default is window_tuple="hann".

  • overlap_factor (float, optional) – Defines the overlap between consecutive segments used in the calculation. Default is 0.5.

Returns:
Neff: float

The effective number of averages.