pymultifracs.psd.plot_psd#
- pymultifracs.psd.plot_psd(signal, fs, n_fft=4096, seg_size=None, n_moments=2, log='log2', ax=None, wt='db')#
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
ndarray
,shape
(n_samples,) Time series of sampled values
- fs
float
Sampling frequency of
signal
- n_fft
int
,optional
Length of the FFT desired. If seg_size is greater,
n_fft = seg_size
.- seg_size
int
|None
Length of Welch segments. Defaults to None, which sets it equal to
n_fft
- n_moments
int
Number of vanishing moments of the Daubechies wavelet used in the Wavelet decomposition.
- log
str
Log function to use on the frequency and power axes
- signal
References