From b51e56a815697de815bcdc2a543e6c6d47a10ced Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Wed, 26 Jun 2024 11:28:22 -0400 Subject: Fixup in spectral_utils docs --- qolab/math/spectral_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qolab/math') diff --git a/qolab/math/spectral_utils.py b/qolab/math/spectral_utils.py index 150078c..d22574c 100644 --- a/qolab/math/spectral_utils.py +++ b/qolab/math/spectral_utils.py @@ -3,7 +3,7 @@ from scipy.fft import fft, rfft, irfft, rfftfreq def spectrum(t, y): """ - Spectrum of real value signal with stripped away zero frequency component. + Calculate spectrum of real value signal with stripped away zero frequency component. Preserves amplitude of a coherent signal (Asin(f*t)) independent of sampling rate and time interval. """ @@ -17,7 +17,7 @@ def spectrum(t, y): def noise_density_spectrum(t,y): """ - Calculates noise amplitude spectral density (ASD), the end results has unitis of y/sqrt(Hz) + Calculate noise amplitude spectral density (ASD), the end results has unitis of y/sqrt(Hz) i.e. it does sqrt(PSD) where PSD is powerd spectrum density. Preserves the density independent of sampling rate and time interval. """ @@ -27,7 +27,7 @@ def noise_density_spectrum(t,y): def noise_spectrum_smooth(fr, Ampl, Nbins=100): """ - Smooth spectrum, especially at high frequency end. + Smooth amplitude spectrum, especially at high frequency end. Could be thought as logarithmic spacing running average. Since we assume the spectrum of the nose, we do power average (rmsq on amplitudes) Assumes that set of frequencies is positive and equidistant set. -- cgit v1.2.3