projects
/
FFT-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e92fae2
)
Create extra block holding PowerSpectrumCommand output data
author
W. Trevor King
<wking@drexel.edu>
Sat, 7 Aug 2010 22:11:37 +0000
(18:11 -0400)
committer
W. Trevor King
<wking@tremily.us>
Sun, 18 Nov 2012 23:40:07 +0000
(18:40 -0500)
FFT_tools.py
patch
|
blob
|
history
diff --git
a/FFT_tools.py
b/FFT_tools.py
index cd8d587a8d40b57389e30c5b4e16a389c7fe6bcb..0daec76c34875d5638a0e4571e11cc4c2ed73e16 100644
(file)
--- a/
FFT_tools.py
+++ b/
FFT_tools.py
@@
-131,7
+131,6
@@
def unitary_rfft(data, freq=1.0):
Notes
-----
Notes
-----
-
If the units on your data are Volts,
and your sampling frequency is in Hz,
then `freq_axis` will be in Hz,
If the units on your data are Volts,
and your sampling frequency is in Hz,
then `freq_axis` will be in Hz,
@@
-324,7
+323,7
@@
def avg_power_spectrum(data, freq=1.0, chunk_size=2048,
def unitary_avg_power_spectrum(data, freq=1.0, chunk_size=2048,
overlap=True, window=window_hann):
def unitary_avg_power_spectrum(data, freq=1.0, chunk_size=2048,
overlap=True, window=window_hann):
- """Compute the unitary av
g
erage power spectrum of `data`.
+ """Compute the unitary average power spectrum of `data`.
See Also
--------
See Also
--------
@@
-351,7
+350,6
@@
class TestRFFT (unittest.TestCase):
Notes
-----
Notes
-----
-
The expected return values are [#dft]_:
.. math:: X_k = \sum_{m=0}^{n-1} x_m \exp^{-2\pi imk/n}
The expected return values are [#dft]_:
.. math:: X_k = \sum_{m=0}^{n-1} x_m \exp^{-2\pi imk/n}
@@
-389,7
+387,6
@@
class TestUnitaryRFFT (unittest.TestCase):
Notes
-----
Notes
-----
-
Which is:
.. math:: \sum_{m=0}^{n-1} |x_m|^2 dt = \sum_{k=0}^{n-1} |X_k|^2 df
Which is:
.. math:: \sum_{m=0}^{n-1} |x_m|^2 dt = \sum_{k=0}^{n-1} |X_k|^2 df
@@
-438,7
+435,6
@@
class TestUnitaryRFFT (unittest.TestCase):
Notes
-----
Notes
-----
-
Analytic result:
.. math:: \rfft(\rect(at)) = 1/|a|\cdot\sinc(f/a)
Analytic result:
.. math:: \rfft(\rect(at)) = 1/|a|\cdot\sinc(f/a)
@@
-503,7
+499,6
@@
class TestUnitaryRFFT (unittest.TestCase):
Notes
-----
Notes
-----
-
Analytic result:
.. math::
Analytic result:
.. math::