diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-06-26 11:28:22 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2024-06-26 11:28:22 -0400 |
commit | b51e56a815697de815bcdc2a543e6c6d47a10ced (patch) | |
tree | b19c5706c3798a1b2963febcfd67e6a51467342f /qolab/math | |
parent | ad6f18d4b515d9e4c64d85d221740e74e9e7a52d (diff) | |
download | qolab-b51e56a815697de815bcdc2a543e6c6d47a10ced.tar.gz qolab-b51e56a815697de815bcdc2a543e6c6d47a10ced.zip |
Fixup in spectral_utils docs
Diffstat (limited to 'qolab/math')
-rw-r--r-- | qolab/math/spectral_utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
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. |