FFT - documentation - examples - linspace construction
See original GitHub issuecf. https://docs.scipy.org/doc/scipy/reference/tutorial/fft.html
In the examples given in the documentation of FFT shouldn’t the linspace construction in
N = 600
# sample spacing
T = 1.0 / 800.0
x = np.linspace(0.0, N*T, N)
be
x = np.linspace(0.0, (N-1)*T, N)
in order for the entries in x to have T spacing?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
FFT-results in python dependend on linspace chosen?
You must calculate the correct frequencies depending on sample rate, number of samples and samples used in the fft (NFFT).
Read more >Fourier Transforms With scipy.fft: Python Signal Processing
In this tutorial, you'll learn how to use the Fourier transform, a powerful tool for analyzing signals with applications ranging from audio processing...
Read more >Understanding Fourier transform example in Matlab
Read up on the differences between the DFT (i.e., discrete fourier transform), the FFT (a fast version of DFT), the *Fourier Series and...
Read more >Fast Fourier Transform with discrete data - MATLAB Answers
This calculates the Fourier transform, and displays a one-sided Fourier transform (0 Hz to the Nyquist frequency). This code subtracts the mean ...
Read more >Fourier Transforms (scipy.fft) — SciPy v1.9.3 Manual
The example plots the FFT of the sum of two sines. ... Number of sample points >>> N = 600 >>> # sample...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

That’s correct
All PRs should be made against master. maintenance branches are only used for back-porting bug fixes.
I’ll also add that
linspace(0.0, N*T, N, endpoint=False)might be a clearer way to write it.Yes, the file to change is
doc/source/tutorial/fft.rst. The PR should be made against themasterbranch. After merging a maintainer here can backport to 1.5.x as needed (not sure if there are currently plans for an additional 1.5.x release).There are some contributor guidelines here, but much of the content may not be relevant for a simple documentation fix like this (i.e. no testing, benchmarks, etc. will be involved). There are also docs helping for working with Git.
The beginning sections of the Git docs above list how to create a fork of the SciPy repository and configure an “upstream” remote if you need help with that.