-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsa.periodogram() returns frequencies of all 0s when Fs=1. #191
Comments
Update: I think we should use
The output:
Note that for the odd case, the power corresponding to the Nyquist frequency
While the Even if we ignore the doubling, this is consistent with the Fourier coefficients computed using |
Yeah - I would be fine with such a change. Do you want to put up a PR? |
This is to fix issue nipy#191 Also noticed that `np.fft.rfftfreq(N)` gives different results as `scipy.fftpack.rfftfreq(N`). The former gives the positive freqs.
Closed through #194 |
Hi,
I noticed that the following code returns
freqs
which is all 0s:I believe it is this line (in
algorithms/spectral.py
) that is causing the issue:Should it be
Fs / 2
instead?Version: nitime 0.9
Installed via conda
The text was updated successfully, but these errors were encountered: