Skip to content

Commit

Permalink
Update nx/guides/advanced/complex_fft.livemd
Browse files Browse the repository at this point in the history
Co-authored-by: Paulo Valente <[email protected]>
  • Loading branch information
ndrean and polvalente authored Nov 21, 2024
1 parent d63e50e commit a942738
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions nx/guides/advanced/complex_fft.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,8 @@ We are interested in the amplitudes only here. This is calculated by taking the
```elixir
n = Nx.size(dft)

# Nyquist threshold:
max_freq_index = div(n, 2)

# thus we keep only the meaningfull values and calculate the amplitudes
amplitudes = Nx.abs(dft)[0..max_freq_index]

# the frequency bins, "n" of them spaced by fs/n=1 unit:
Expand Down

0 comments on commit a942738

Please sign in to comment.