Skip to content

Commit bd33004

Browse files
committed
multiply freqs with Fs
1 parent f020154 commit bd33004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nitime/algorithms/spectral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def periodogram(s, Fs=2 * np.pi, Sk=None, N=None,
250250
pshape[-1] = Fn
251251
P = np.zeros(pshape, 'd')
252252
#freqs = np.linspace(0, Fs // 2, Fn)
253-
freqs = np.fft.rfftfreq(N)
253+
freqs = np.fft.rfftfreq(N) * Fs
254254
P[..., 0] = (Sk[..., 0] * Sk[..., 0].conj()).real
255255
P[..., 1:Fl] = 2 * (Sk[..., 1:Fl] * Sk[..., 1:Fl].conj()).real
256256
if Fn > Fl:

0 commit comments

Comments
 (0)