The FFT Algorithm - Simple Step by Step

Sdílet
Vložit
  • čas přidán 9. 08. 2015
  • This video walks you through how the FFT algorithm works

Komentáře • 99

  • @PereMersenne
    @PereMersenne Před 7 lety +154

    I spent part of a semester in college learning this, back in the 1980's. It cost me ~$500 in 1985 $s. Now it's free on the Internet, and presented much more clearly.
    Thanks.

    • @coltennabers634
      @coltennabers634 Před 4 lety +15

      you should see what it cost today in college.....

    • @davidgoodwin16
      @davidgoodwin16 Před 2 lety

      Its also hard to find good teachers - with things like this topic, skipping even a single step is like a broken chain, and I think a lot of professors find it hard to remember this, or simply don't care. Simon presents the most solid explanation of the FFT I have found, not missing or skipping any critical information.

    • @xtr3m385
      @xtr3m385 Před 2 lety +1

      welcome to the _future..._

  • @stuf2201
    @stuf2201 Před 4 lety +12

    This is such an amazing straightforward explanation when combined with your video on the DFT. This was impenetrable to me when I got my engineering undergraduate. I was just grateful at the time I didn't have to fully understand it to use it.
    I hope at some point you consider teaching undergraduates. Even if you aren't an academic some of my best classes were taught by people from industry that wanted to make sure we got something useful.

  • @davidgoodwin16
    @davidgoodwin16 Před 2 lety +2

    By far the best explanation of exactly how the FFT algorithm works that I have been able to find on the net. I recreated your code in c#, and compared to some common FFT libraries - got the exact same results. Great work.

  • @PeterLuong
    @PeterLuong Před 7 lety

    This is by far the best explanation of the FFT I had ever seen.

  • @FuryOnStage
    @FuryOnStage Před 7 lety +9

    This is the best explanation of FFT on youtube. Thank you.

  •  Před 5 lety +2

    This is the greatest explanation of FFT ever! I hope that my knowledge and skills will allow me to pass my image processing test tomorrow😅

  • @nin10dorox
    @nin10dorox Před 5 lety +1

    I've been trying to understand this algorithm for a long time, and this video made it click!

  • @Berneer
    @Berneer Před 7 lety +47

    I have swept almost the entire CZcams offering on FFT and I agree that this is the most accessible and concrete treatment with the best presentation. I love fresh colour-coded method of teaching. Can you say what software you used to make this?
    Yes at 6:42 it is a tiny error in the 2nd term of F1 but it multiplies by zero and doesn't change
    the final answer. So the F1 equation should be:
    F1 = 0 + -1(0) + (-j)[1+(-1)(-1)] = -2j
    I believe the rest of the video is error-free. Great work! For an even better understanding I encourage viewers to split the summations one more time to have 8 summations, remembering that exp(x)*exp(y) = exp(x+y), and then it really becomes obvious how elegant Simon Xu's way of organizing terms really is. Then the pattern becomes obvious and you could technically split as many times as you want, confidently, to have 16 terms or 32 terms without having to do all the math but instead by following the pattern.
    Simon, "I'll be watching your career with much interest young man".... quote from Senator Palpatine :)

  • @erickr199
    @erickr199 Před 3 lety

    Thanks i literally transcribed the entire video into notes, very helpful

  • @noneuno2296
    @noneuno2296 Před 7 lety +4

    Instructors who may be reading: I absolutely hate it when you skip steps and make mistakes when I, the student, am trying to learn from following your "easy" explanation, step-by-step. It irks me so. You don't impress me; rather, you just frustrate and piss me, the student, off. I shouldn't have to find your mistakes; it's not my job to find your mistakes while twisting my brain in knots which shouldn't exist. You shouldn't be making mistakes. If you're making mistakes, then don't, in all your "brilliance," skip steps. (...seems a no-brainer to me.) But what's nice is I can finally say this to an instructor after so many years and not interrupt class to do it. :-)

    • @noneuno2296
      @noneuno2296 Před 7 lety +1

      And if you make mistakes intentionally, just to see if I'm following you, and I learn this, then you really piss me off. (...assuming it matters.) Educational costs are high, and students can't afford to have instructors who make mistakes because they want to appear brilliant and skip steps.

  • @satyajeetkumarjha1482
    @satyajeetkumarjha1482 Před 2 lety

    a lot better than many other videos out there.

  • @BritishBeachcomber
    @BritishBeachcomber Před 2 lety +4

    I first used FFT as a R&D engineer in 1979. It took a microprocessor and a load of custom electronics. Recently did it on an Arduino. Awesome progress.

  • @floretionguru2977
    @floretionguru2977 Před 4 lety

    Awesome - great job describing this!

  • @Devishhike
    @Devishhike Před 11 měsíci

    Finally... One of the hundreds who showed what should I do with the output of FFT. Till now this was implicit.

  • @distribrain
    @distribrain Před 3 lety +1

    Quite good presentation. Clear Explanation.
    Just mention that 5:56 the 4th summation should use x3 rather than x4. (x0 x2 x1 x3)

  • @shanwei1038
    @shanwei1038 Před 7 lety +1

    Really helps for a newbie of fourier Transform.

  • @sanyikacsatornacskalyaerde6605

    You have great videos. You should continue making videos!!! Thank youu!

  • @ShizzleMyChizzle
    @ShizzleMyChizzle Před 5 lety +1

    O my god, you are brilliant!

  • @samuelmuhigirwa6715
    @samuelmuhigirwa6715 Před 5 lety

    your videos are beautiful! thank you so much!

  • @hubertyat3056
    @hubertyat3056 Před 8 měsíci

    very nice and straight forward explanation

  • @shaflyhamzah3848
    @shaflyhamzah3848 Před 4 lety

    Thanks, Nice explanation!

  • @bokunochannel84207
    @bokunochannel84207 Před 3 lety

    wow, dude you just solve my problem.
    i'm literally looking for this for 3days and i found the answer at minute 21

  • @eightfivezerobraxton5509

    Best video on FFT

  • @yingninghe4077
    @yingninghe4077 Před 5 lety

    thank you. I've been trying to learn FFT . your video is very helpful!

  • @NicolasSchmidMusic
    @NicolasSchmidMusic Před 3 lety

    Thank you so much!

  • @bahaaghammraoui1304
    @bahaaghammraoui1304 Před 4 lety

    Thank you, 100/100

  • @comprehensivelunch
    @comprehensivelunch Před 8 lety +16

    Hi,
    I'm writing a paper on the Fourier Transform, and one of the sections focuses on the FFT. One part of this video, however, confuses me. At 6:04, you establish that F0 = x0+x2+x1+x3 = 0 + 1 + 0 + -1. It appears that you've rearranged the x values in between the second and third parts of this equation, going from x0+x2+x1+x3 to x0+x1+x2+x3 (I'm assuming that x0=0, x1=1, x2=0, and x3=-1). Using the first ordering, it seems that Fe0 should equal 0 + 0 (x0+x2) and Fo0 should equal 1 + -1 (x1 + x3). This affects the even and odd sums, thereby affecting the results of F3 and F4. Am I missing a step here? Do Fe0 really equal x0+x1 (1) and Fo0 really equal x2+x3 (0 + -1)?

  • @murrrkeskin
    @murrrkeskin Před 5 lety

    Thank you for the video, it is very helpful. Can you make a video about inverse FFT?

  • @liangwang3098
    @liangwang3098 Před 5 lety +2

    谢谢老哥,讲的太清楚了

  • @yackawaytube
    @yackawaytube Před rokem

    I finally understood FFT

  • @chrisstanford3652
    @chrisstanford3652 Před 2 lety

    🤗🤗 very easy to follow

  • @AladdinPersson
    @AladdinPersson Před 4 lety

    Hey buddy great video, what program did you use to make the vid?

  • @Paul-fz5tq
    @Paul-fz5tq Před 5 lety +2

    It is one of the best. Why do you stop your work? What can you say about Z transform?

  • @MST339
    @MST339 Před 26 dny

    @7:20 the phase-shift (exponential) index shall be doubled for F_2^o, and quadrupled for F_3^o.

  • @user-lx4sp1gl4f
    @user-lx4sp1gl4f Před 4 lety

    Thanks!

  • @dimas425
    @dimas425 Před 7 lety

    thank you .

  • @giphe
    @giphe Před 6 měsíci

    Legend.

  • @AriKath
    @AriKath Před 10 měsíci

    Wonderful

  • @prismadynamicsllc3014
    @prismadynamicsllc3014 Před 8 lety +1

    Quick question, in the video the index k and n are going from 0 to # of samples. Should it be going from 0 to number of samples minus 1?

    • @SimonXu
      @SimonXu  Před 8 lety +1

      +Prisma Dynamics LLC Yes you are correct, sorry for the mistake

  • @KTheXIII
    @KTheXIII Před 2 lety

    Thanks

  • @MajedW2334
    @MajedW2334 Před 7 lety +1

    thanx aloooooooooooooooot..

  • @howtovideos5143
    @howtovideos5143 Před 7 lety +7

    in 6:42 I get -1 no 1 as you show in the video why?
    N=4, K=1, so e^(-j4pik/N) = 1? I get -1

    • @yasefmeruane7297
      @yasefmeruane7297 Před 6 lety +1

      yes, you are right, its -1, it didnt affect the result because it was multiplied by 0 but nice find

  • @SimonXu
    @SimonXu  Před 7 lety +14

    Sorry all, I just noticed all the comments in my email when I checked this account today.. Based upon your comments I think I probably have several errors in my video. Hopefully I can create a new video that fixes all these errors in the future. I created this video as a resume filler when I was job hunting, had no idea it would be viewed so many times.

    • @wojtekpilwinski
      @wojtekpilwinski Před 7 lety +2

      Yes your video is realy great, I watched tens of similar, but only your helped me to understand, especially DFT video, because here the true is that there are a lot of mistakes that made me crazy, I but after watch it ten times I catch the errors and I think I got the idea of FFT. But still I have some question like:
      1) Shoul we always devide our array until we get sums of one sample ("m" goes from 0 to 0)? I wonder because there is Nyquest (??? somebody like that) idea that there should be sampling rate 2x highest frequency we want to measure. I think I understand that Nyquest idea, but I'm not how it corresponds with deviding array to just one sample? I think it would be great if you make video FFT with 8 sample rate example like in DFT video, 8 sample rate would make it much more clear I think
      2) "Windowing" - it's not about this videao exactly but it's about FFT also. I understand exactly what "windowing" makes, but I have big problem to understand how to make Inversion FFT from that windowed FFT transfered data. When I try to plot inverted data I recive some strange results. Maybe you could also create video about that case?
      Again thanks for that videos and thanks in advance for any new if you create.

    • @eyezlee1142
      @eyezlee1142 Před 4 lety +1

      apparently it never happens

  • @lynneli8630
    @lynneli8630 Před 3 lety

    at 6:11, since it is not ordered as 0+0+1+(-1), the split of F_even and F_odd group is wrong

  • @Red-ft9sb
    @Red-ft9sb Před 4 lety +1

    The statement "If we add a multiple of 2pi to the operand of cos (3:54) you end up with simply the 2pi functions with the 2pi multiple." Please elaborate. How can it be canceled? Apology if I sounded stupid but I just couldn't figure out how it gets removed. Maybe because it's a neglible value?. I don't know

    • @maddiesmith2131
      @maddiesmith2131 Před 4 lety +2

      The cosine wave is periodic, repeating every 2pi. So adding a 2pi value simply obtains the same result as before adding 2pi.

  • @pratamaramadhan9769
    @pratamaramadhan9769 Před 5 lety

    Cool

  • @alvansanchez5667
    @alvansanchez5667 Před 2 lety

    you are the best, I do not understand nothing, but I pretty sure taht you're a fucking genious. God bless you

  • @pavelkonovalov8931
    @pavelkonovalov8931 Před 5 lety

    God bless you

  • @shamsundarkulkarni5146

    good ideo

  • @giviarabidze2287
    @giviarabidze2287 Před 5 lety +3

    Damn everything looks so fine unless you go into details :( Not even sure are they really mistakes or do I make mistakes myself. For example how e(-j4pk/N) = 1 in one case and it equals -1 in the other, when k=1 and N=4. Doesn't it make cos(p)-jsin(p) = -1 in both cases?

  • @lynneli8630
    @lynneli8630 Před 3 lety

    at 6:56, the coefficient of x_2 should be -1 instead of 1. So F_1 = -j

  • @leadersupreme3112
    @leadersupreme3112 Před 8 lety +5

    Another Quick question, in the video 20000*log2 20000 = 285754 operations, it's not 28600?

  • @salovafidi8913
    @salovafidi8913 Před 3 lety

    while i calculating like normal DFT why do i get F1 = 0+0j not -2j?

  • @rahulsingh7508
    @rahulsingh7508 Před 4 lety

    Why the first value after applying FFT on a one-dimensional array is always the greatest value?

  • @alfietankokleong
    @alfietankokleong Před 7 lety

    Such a wonderful video! Could you explain the part @ 5:58 , F0 = 0 + 1 + 0 - 1. All exponents = 1, how is X3 = -1. How is X0 and X3 = 0? If X0 is 0, why is X2 not = 0. Thanks alot in advance

    • @alfietankokleong
      @alfietankokleong Před 7 lety

      Hi, ignore my question, of course I understand now that you are simply applying the coefficients of 0, pi/4,pi/2 and pi of the first term. But therefore referring to 5:51, the content should be X0 = 0, X2 = 0.707, X1 = 0, X3 = -1?

    • @murrrkeskin
      @murrrkeskin Před 5 lety

      @@alfietankokleong they are just the data samples which are taken from the sine wave. watch again by starting at 5:00

  • @TheRizzTV
    @TheRizzTV Před 7 lety +2

    if you have the c++ code, is it possible that you would put it up in the description or something so it's possible to download? :)

  • @derrickkwon2232
    @derrickkwon2232 Před 7 měsíci

    I think some missing in 5:57 x4 should be the x3.

  • @swagmuffin411gaming8
    @swagmuffin411gaming8 Před rokem

    Gonna watch 30 more times then hopefully I will get it lol

  • @kinnarikateja5064
    @kinnarikateja5064 Před 4 lety +1

    Hello how x2 = 1, if you take 4 samples, x0=0, x1=1, x2=0 and x3 = -1, isn't it...at 6: 09 u splited even n odds but u considered x0 n x1 as odd. N other as even.. How? Plz correct me n guide

    • @cherma11
      @cherma11 Před rokem +1

      Good catch you found an error there. F(0)_even = 0, F(1)_even = 0; F(0)_odd = 0, F(1) _odd= 2. Note even is always zero because of the sample. The -1 Sample flips sign on F(1) because of green 4*pi term. Note to leave out the 2*pi term on f(1)_odd when calculating the odd_sum.

  • @itsViPar
    @itsViPar Před 4 lety

    Can someone show me how he split them in two with more detail

  • @stefanocarniel4015
    @stefanocarniel4015 Před 2 lety

    There Is an error computing F1: the second term of the sum should be -1(0). It does not affect the final value because this product is 0, but for the sake of correctnes

  • @jameshopkins3541
    @jameshopkins3541 Před 2 měsíci

    WHICH IS THE ORIGINAL SEQUENCE?

  • @othmanelhoufi2506
    @othmanelhoufi2506 Před 4 lety

    Example of SVGs path drawing using Fourier Transform : othmanelhoufi.github.io/fourier

  • @EhsanHabib
    @EhsanHabib Před 8 lety

    what do you mean by "bin"?

  • @brookshartsock4950
    @brookshartsock4950 Před rokem

    Remember guys, FFT's > NFT's

  • @nathangerwig6637
    @nathangerwig6637 Před 6 lety

    No sound

  • @junkmail4613
    @junkmail4613 Před 6 lety +10

    Really wish you'd have raised the volume to where we could hear it. No. P.S. NOT LOUD ENOUGH!!! P.P.S. Can't hear it!!!

    • @AccuphaseMan
      @AccuphaseMan Před 4 lety +2

      I really wish you got yourself an external dac/amp SO YOU COULD JUST TURN IT UP lmao

    • @gerdsfargen6687
      @gerdsfargen6687 Před 2 lety +1

      @@AccuphaseMan he need hearing aid lol

    • @necroowl3953
      @necroowl3953 Před rokem

      Broski can't even hear the captions

  • @davidchen3128
    @davidchen3128 Před 4 lety +1

    F3 should have been F3 = j (-2j )= 2

  • @borisgotov9838
    @borisgotov9838 Před 6 lety +3

    this is no so simple :(

  • @jameshopkins3541
    @jameshopkins3541 Před 2 měsíci

    ¿???¿??????????????????
    P,ease explain something WHAT ARE YOU DOING???????

  • @christopherjoseph651
    @christopherjoseph651 Před 3 lety

    I was about to thank you for using C++, then you had to go and mention python! WHY WOULD YOU USE A SUPER SLOW VIRTUAL LANGUAGE FOR AN ALGORITHM THAT IS SUPPOSED TO BE FAST!