Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
f58e6d0533
commit
f99fc369ff
1 changed files with 14 additions and 0 deletions
|
@ -72,7 +72,21 @@ print(fft_result.shape) # -> (10000,)
|
|||
rfft_result = np.fft.rfft(x)
|
||||
print(rfft_result.shape) # -> (5001,)
|
||||
```
|
||||
### [numpy.fft.fftfreq](https://numpy.org/doc/stable/reference/generated/numpy.fft.fftfreq.html#numpy-fft-fftfreq)
|
||||
|
||||
```python
|
||||
fft.fftfreq(n, d=1.0)[source]
|
||||
```
|
||||
> Return the Discrete Fourier Transform sample frequencies.
|
||||
>
|
||||
> The returned float array f contains the frequency bin centers in cycles per unit of the sample spacing (with zero at the start). For instance, if the sample spacing is in seconds, then the frequency unit is cycles/second.
|
||||
>
|
||||
> Given a window length n and a sample spacing d:
|
||||
|
||||
```python
|
||||
f = [0, 1, ..., n/2-1, -n/2, ..., -1] / (d*n) if n is even
|
||||
f = [0, 1, ..., (n-1)/2, -(n-1)/2, ..., -1] / (d*n) if n is odd
|
||||
```
|
||||
|
||||
## [Discrete Fourier Transform (numpy.fft)](https://numpy.org/doc/stable/reference/routines.fft.html#discrete-fourier-transform-numpy-fft)
|
||||
|
||||
|
|
Loading…
Reference in a new issue