From a94273801eaf3cb07ddaad43a58dcac66de9eb9f Mon Sep 17 00:00:00 2001 From: Neven DREAN Date: Thu, 21 Nov 2024 20:22:48 +0100 Subject: [PATCH] Update nx/guides/advanced/complex_fft.livemd Co-authored-by: Paulo Valente <16843419+polvalente@users.noreply.github.com> --- nx/guides/advanced/complex_fft.livemd | 2 -- 1 file changed, 2 deletions(-) diff --git a/nx/guides/advanced/complex_fft.livemd b/nx/guides/advanced/complex_fft.livemd index ef5b411496..9371919c32 100644 --- a/nx/guides/advanced/complex_fft.livemd +++ b/nx/guides/advanced/complex_fft.livemd @@ -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: