cbadc.utilities.compute_power_spectral_density
- cbadc.utilities.compute_power_spectral_density(sequence: ndarray, nperseg: int = 16384, fs: float = 1.0) Tuple[ndarray, ndarray][source]
Compute power spectral density of sequence.
- Parameters
sequence (array_like, shape=(L, K)) – determine length of each fft sequence
fs (double, optional) – sampling frequency, defaults to 1.0
- Returns
frequencies [Hz] and PSD [\(V^2/\mathrm{Hz}\)] of sequence.
- Return type
((array_like, shape=(K,)), (array_like, shape=(L, K)))