pygwb.util.calc_rho
- pygwb.util.calc_rho(N, j, window_tuple='hann', overlap_factor=0.5)[source]
Calculate the normalised correlation of a window with itself shifted
jtimes. This is identical to therho(j)from Welch (1967).- Parameters:
N (
int) – Length of the window.j (
int) – Number of “shifts” to apply to the window when correlating with itself.window_tuple (
strortuple, optional) – Window name or tuple as used inscipy.signal.get_window(). Default iswindow_tuple="hann".overlap_factor (
float, optional) – Defines the overlap between consecutive segments used in the calculation. Default is 0.5.
- Returns:
- rho:
float The normalised window correlation rho(j).
- rho:
See also
scipy.signal.get_windowMore information here.