razorback.fourier_transform module
Computation of the fourier coefficients on sliding windows.
- razorback.fourier_transform.slepian_window(tau)
return the ‘window function’ for a slepian with parameter tau
- razorback.fourier_transform.time_to_freq(data, sampling_freq, freq, Nper, overlap, window=None, compute=True)
Compute the fourier coefficients on sliding windows.
- Parameters:
data (list of arrays) – the time sequences to transform
sampling_freq (scalar) – the sampling frequency of the time sequences
freq (scalar) – the frequency of the Fourier transform
Nper (int) – number of period in each window window length = Nper / freq * sampling_freq
overlap (scalar in [0;0.5]) – the overlap ration between windows
window (array or function) – window function to apply before Fourier transform None means no windowing (default)
- Returns:
freq_data (list of arrays) – processing of each array of the data list
discrete_window_data (tuple of integer) – data of the sliding discrete window discrete_window_data = (Nw, Lw, shift) Nw: number of windows Lw: length of the window shift: index shift beetwen windows