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:
signalndarray of float, shape (n_samples,)

Time series of sampled values

fsfloat

Sampling frequency of signal

wt_namestr

Name of the decomposing wavelet.

log_baseint

Base of the logarithm in the plot axes.

axAxes | None

Axes where to plot the PSD.

**welch_kwargsdict

Arguments passed to the scipy.signal.welch() function.

References