Skip to content

spectral_density

spectral_density(signals, fs)

Calculates spectral density of the signal(s).

Parameters:

Name Type Description Default
signals Signals

N signals with lenght M or 1D signal with length M.

required

Returns:

Type Description
tuple[ndarray, ndarray]

freq_range, specs (tuple[np.ndarray[M,], np.ndarray[N, M] or [M,]]): Frequency range and spectral density.