plot_psd#
- pymultifracs.viz.plot_psd(signal, fs, wt_name='db2', log_base=2, ax=None, **welch_kwargs)#
Plot the superposition of Fourier-based Welch estimation and Wavelet-based estimation of PSD on a log-log graphic.
Based on the wavelet_fourier_spectrum function of the MATLAB toolbox mf_bs_toolbox-v0.2 [1]
- Parameters:
- signal
ndarrayoffloat, shape (n_samples,) Time series of sampled values
- fs
float Sampling frequency of
signal- wt_name
str Name of the decomposing wavelet.
- log_base
int Base of the logarithm in the plot axes.
- ax
Axes|None Axes where to plot the PSD.
- **welch_kwargs
dict Arguments passed to the
scipy.signal.welch()function.
- signal
References