How to deal with the mirrored components of a FFT? And another questionAnalysing 2500 frequencies using FFT with an input vector of 2048 samples?DFT and then IDFT does not provide the same signalFFT of Square Wave and Sin WaveObtaining power spectrum from ACF, FFT using Matlab and FFTWExtracting amplitudes of components from FFTConsidering the FFT of Real & Complex SignalsWindow period(overlap) and FFTDiscontinuities in the FFTNormalize FFT signal (DC part)How do I calculate peak amplitude of the signal components after zero padding and FFT?

Why isn't Tyrion mentioned in 'A song of Ice and Fire'?

Ribbon Cable Cross Talk - Is there a fix after the fact?

Flatten not working

Where is Jon going?

Can a UK national work as a paid shop assistant in the USA?

Why did it take so long for Germany to allow electric scooters / e-rollers on the roads?

The disk image is 497GB smaller than the target device

One word for 'the thing that attracts me'?

Paired t-test means that the variances of the 2 samples are the same?

Local variables in DynamicModule affected by outside evaluation

Writing "hahaha" versus describing the laugh

Have any humans orbited the Earth in anything other than a prograde orbit?

What is to the west of Westeros?

"Official wife" or "Formal wife"?

Did Game of Thrones end the way that George RR Martin intended?

Is it safe to redirect stdout and stderr to the same file without file descriptor copies?

Determine direction of mass transfer

What did the 'turbo' button actually do?

Why is this integration method not valid?

Merge pdfs sequentially

Why is unzipped directory exactly 4.0K (much smaller than zipped file)?

Why is the Eisenstein ideal paper so great?

How does Dreadhorde Arcanist interact with split cards?

Complications of displaced core material?



How to deal with the mirrored components of a FFT? And another question


Analysing 2500 frequencies using FFT with an input vector of 2048 samples?DFT and then IDFT does not provide the same signalFFT of Square Wave and Sin WaveObtaining power spectrum from ACF, FFT using Matlab and FFTWExtracting amplitudes of components from FFTConsidering the FFT of Real & Complex SignalsWindow period(overlap) and FFTDiscontinuities in the FFTNormalize FFT signal (DC part)How do I calculate peak amplitude of the signal components after zero padding and FFT?













1












$begingroup$


I'm trying to simulate the behavior of my FFT spectrum analyzer, I am using Mathematica, but my questions are more conceptual than technical implementation of code...I hope.



If we consider a simple cosine wave transient signal $y(t) = A cos(2 pi nu_0 t)$, where $A = 1$ and $nu_0 = 24$ $rmHz$. This signal is sampled at some time interval $dt$ and this gives me 2048 points (2048 because of my device), I want to resolve this data to some frequency resolution, $Delta f$, and from the Fourier limit: $t_sample = 1/Deltaf$ so my sample rate, $S_r = 1/dt$ is adjusted accordingly.



I then take the absolute value of the FFT of these 2048 points and reconstruct the frequency component using $Delta f$ (in this example $Delta f = 0.0625$ $rmHz$, this value is because of my device and the features I want to resolve) and the index of the resultant FFT, and get this:



enter image description here



I understand that the symmetric appearance of an FFT comes from the real and imaginary components having the same response to signals -- the absolute value of their responses will be the same. But the phase of the real and imaginary parts is shifted by $pi / 4$. This gives us our mirrored appearance.



FIRST QUESTION: Usually I would just throw the right hand frequencies away and multiply the amplitude of what is left by $2$. Is this the correct approach or should I reverse the order of one half of these 2048 points and then add them together (intuitively I would say no, because both halves should be identical so multiplying by $2$ should suffice)? What is the best method of reconstructing the frequency component/axis?



SECOND QUESTION: This is something I just don't understand. If I increase the frequency of my transient signal $nu_0$ then the two mirrored peaks move closer to each other, converging in the center. This makes sense. If I keep increasing $nu_0$ of the transient arbitrarily (past $124$ $rmHz$ which corresponds to the limit of frequencies) however I still see a peak, in fact I see this oscillating behavior of the peaks just bouncing back and forth as I further increase the frequency -- Why?! Is this natural or because of the way I define my frequencies.










share|improve this question









$endgroup$
















    1












    $begingroup$


    I'm trying to simulate the behavior of my FFT spectrum analyzer, I am using Mathematica, but my questions are more conceptual than technical implementation of code...I hope.



    If we consider a simple cosine wave transient signal $y(t) = A cos(2 pi nu_0 t)$, where $A = 1$ and $nu_0 = 24$ $rmHz$. This signal is sampled at some time interval $dt$ and this gives me 2048 points (2048 because of my device), I want to resolve this data to some frequency resolution, $Delta f$, and from the Fourier limit: $t_sample = 1/Deltaf$ so my sample rate, $S_r = 1/dt$ is adjusted accordingly.



    I then take the absolute value of the FFT of these 2048 points and reconstruct the frequency component using $Delta f$ (in this example $Delta f = 0.0625$ $rmHz$, this value is because of my device and the features I want to resolve) and the index of the resultant FFT, and get this:



    enter image description here



    I understand that the symmetric appearance of an FFT comes from the real and imaginary components having the same response to signals -- the absolute value of their responses will be the same. But the phase of the real and imaginary parts is shifted by $pi / 4$. This gives us our mirrored appearance.



    FIRST QUESTION: Usually I would just throw the right hand frequencies away and multiply the amplitude of what is left by $2$. Is this the correct approach or should I reverse the order of one half of these 2048 points and then add them together (intuitively I would say no, because both halves should be identical so multiplying by $2$ should suffice)? What is the best method of reconstructing the frequency component/axis?



    SECOND QUESTION: This is something I just don't understand. If I increase the frequency of my transient signal $nu_0$ then the two mirrored peaks move closer to each other, converging in the center. This makes sense. If I keep increasing $nu_0$ of the transient arbitrarily (past $124$ $rmHz$ which corresponds to the limit of frequencies) however I still see a peak, in fact I see this oscillating behavior of the peaks just bouncing back and forth as I further increase the frequency -- Why?! Is this natural or because of the way I define my frequencies.










    share|improve this question









    $endgroup$














      1












      1








      1





      $begingroup$


      I'm trying to simulate the behavior of my FFT spectrum analyzer, I am using Mathematica, but my questions are more conceptual than technical implementation of code...I hope.



      If we consider a simple cosine wave transient signal $y(t) = A cos(2 pi nu_0 t)$, where $A = 1$ and $nu_0 = 24$ $rmHz$. This signal is sampled at some time interval $dt$ and this gives me 2048 points (2048 because of my device), I want to resolve this data to some frequency resolution, $Delta f$, and from the Fourier limit: $t_sample = 1/Deltaf$ so my sample rate, $S_r = 1/dt$ is adjusted accordingly.



      I then take the absolute value of the FFT of these 2048 points and reconstruct the frequency component using $Delta f$ (in this example $Delta f = 0.0625$ $rmHz$, this value is because of my device and the features I want to resolve) and the index of the resultant FFT, and get this:



      enter image description here



      I understand that the symmetric appearance of an FFT comes from the real and imaginary components having the same response to signals -- the absolute value of their responses will be the same. But the phase of the real and imaginary parts is shifted by $pi / 4$. This gives us our mirrored appearance.



      FIRST QUESTION: Usually I would just throw the right hand frequencies away and multiply the amplitude of what is left by $2$. Is this the correct approach or should I reverse the order of one half of these 2048 points and then add them together (intuitively I would say no, because both halves should be identical so multiplying by $2$ should suffice)? What is the best method of reconstructing the frequency component/axis?



      SECOND QUESTION: This is something I just don't understand. If I increase the frequency of my transient signal $nu_0$ then the two mirrored peaks move closer to each other, converging in the center. This makes sense. If I keep increasing $nu_0$ of the transient arbitrarily (past $124$ $rmHz$ which corresponds to the limit of frequencies) however I still see a peak, in fact I see this oscillating behavior of the peaks just bouncing back and forth as I further increase the frequency -- Why?! Is this natural or because of the way I define my frequencies.










      share|improve this question









      $endgroup$




      I'm trying to simulate the behavior of my FFT spectrum analyzer, I am using Mathematica, but my questions are more conceptual than technical implementation of code...I hope.



      If we consider a simple cosine wave transient signal $y(t) = A cos(2 pi nu_0 t)$, where $A = 1$ and $nu_0 = 24$ $rmHz$. This signal is sampled at some time interval $dt$ and this gives me 2048 points (2048 because of my device), I want to resolve this data to some frequency resolution, $Delta f$, and from the Fourier limit: $t_sample = 1/Deltaf$ so my sample rate, $S_r = 1/dt$ is adjusted accordingly.



      I then take the absolute value of the FFT of these 2048 points and reconstruct the frequency component using $Delta f$ (in this example $Delta f = 0.0625$ $rmHz$, this value is because of my device and the features I want to resolve) and the index of the resultant FFT, and get this:



      enter image description here



      I understand that the symmetric appearance of an FFT comes from the real and imaginary components having the same response to signals -- the absolute value of their responses will be the same. But the phase of the real and imaginary parts is shifted by $pi / 4$. This gives us our mirrored appearance.



      FIRST QUESTION: Usually I would just throw the right hand frequencies away and multiply the amplitude of what is left by $2$. Is this the correct approach or should I reverse the order of one half of these 2048 points and then add them together (intuitively I would say no, because both halves should be identical so multiplying by $2$ should suffice)? What is the best method of reconstructing the frequency component/axis?



      SECOND QUESTION: This is something I just don't understand. If I increase the frequency of my transient signal $nu_0$ then the two mirrored peaks move closer to each other, converging in the center. This makes sense. If I keep increasing $nu_0$ of the transient arbitrarily (past $124$ $rmHz$ which corresponds to the limit of frequencies) however I still see a peak, in fact I see this oscillating behavior of the peaks just bouncing back and forth as I further increase the frequency -- Why?! Is this natural or because of the way I define my frequencies.







      fft discrete-signals






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 6 hours ago









      QuantumPenguinQuantumPenguin

      1084




      1084




















          2 Answers
          2






          active

          oldest

          votes


















          2












          $begingroup$

          It depends on your spectrum analyzer.



          If you want to analyze a one channel real baseband signal, the mirrored frequencies are redundant. you should keep the first N/2+1 points.



          For communications signals, there can be an I and Q (two reals as a single complex), you want to keep them all. the frequencies will not be (in general) symmetric.



          If you want to calculate the cross spectrum of two reals, there will be mirrored response, but if you want to do something like taking the inverse of the cross spectrum, you should keep both, but only display half.



          It really depends on the actual application. There really isn't a right or wrong way. There are conventions and exceptions. There are niche applications. Spectrum analyzers that are commercial standalone test equipment, usually have lots of buttons, lots of modes.



          for your second question, this is what spectral aliasing looks like if you don't apply an antialiasing filter prior to the DFT.






          share|improve this answer











          $endgroup$




















            0












            $begingroup$

            The most precise way to deal with them is to compare them using the algorythm used in the Wigner timer frequency distribution.



            It's a processing intensive way of comparing the real and imaginary results of the FFT, I am completely ignorant of the other types of FFT implementations.



            The wigner time frequency distribution uses both products to construct a quantum uncertainty distribution, a bell curve of some kind to describe where the amplitude probably was, for the time and frequency domain, a bit like electrons and photons can be in multiple places at once, the time-frequency graph has an unknown and stochastic basis that can be implemented into a graph. It results the most precise FFT frequency graph according to the professors.



            It is one way of processing the real and imaginary signals, there are probably more popular ones, I am a bit ignorant, even a 3rd year maths or physics student can't easily program it.



            https://en.wikipedia.org/wiki/Wigner_distribution_function#Cross_term_property



            They say In the ancestral physics Wigner quasi-probability distribution has useful physics consequences, required for precision. By contrast, the short-time Fourier transform does not have this feature. Negative features of the WDF are reflective of the Gabor limit of the classical signal and physically unrelated to any possible underlay of quantum structure.






            share|improve this answer











            $endgroup$













              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "295"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              noCode: true, onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdsp.stackexchange.com%2fquestions%2f58439%2fhow-to-deal-with-the-mirrored-components-of-a-fft-and-another-question%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2












              $begingroup$

              It depends on your spectrum analyzer.



              If you want to analyze a one channel real baseband signal, the mirrored frequencies are redundant. you should keep the first N/2+1 points.



              For communications signals, there can be an I and Q (two reals as a single complex), you want to keep them all. the frequencies will not be (in general) symmetric.



              If you want to calculate the cross spectrum of two reals, there will be mirrored response, but if you want to do something like taking the inverse of the cross spectrum, you should keep both, but only display half.



              It really depends on the actual application. There really isn't a right or wrong way. There are conventions and exceptions. There are niche applications. Spectrum analyzers that are commercial standalone test equipment, usually have lots of buttons, lots of modes.



              for your second question, this is what spectral aliasing looks like if you don't apply an antialiasing filter prior to the DFT.






              share|improve this answer











              $endgroup$

















                2












                $begingroup$

                It depends on your spectrum analyzer.



                If you want to analyze a one channel real baseband signal, the mirrored frequencies are redundant. you should keep the first N/2+1 points.



                For communications signals, there can be an I and Q (two reals as a single complex), you want to keep them all. the frequencies will not be (in general) symmetric.



                If you want to calculate the cross spectrum of two reals, there will be mirrored response, but if you want to do something like taking the inverse of the cross spectrum, you should keep both, but only display half.



                It really depends on the actual application. There really isn't a right or wrong way. There are conventions and exceptions. There are niche applications. Spectrum analyzers that are commercial standalone test equipment, usually have lots of buttons, lots of modes.



                for your second question, this is what spectral aliasing looks like if you don't apply an antialiasing filter prior to the DFT.






                share|improve this answer











                $endgroup$















                  2












                  2








                  2





                  $begingroup$

                  It depends on your spectrum analyzer.



                  If you want to analyze a one channel real baseband signal, the mirrored frequencies are redundant. you should keep the first N/2+1 points.



                  For communications signals, there can be an I and Q (two reals as a single complex), you want to keep them all. the frequencies will not be (in general) symmetric.



                  If you want to calculate the cross spectrum of two reals, there will be mirrored response, but if you want to do something like taking the inverse of the cross spectrum, you should keep both, but only display half.



                  It really depends on the actual application. There really isn't a right or wrong way. There are conventions and exceptions. There are niche applications. Spectrum analyzers that are commercial standalone test equipment, usually have lots of buttons, lots of modes.



                  for your second question, this is what spectral aliasing looks like if you don't apply an antialiasing filter prior to the DFT.






                  share|improve this answer











                  $endgroup$



                  It depends on your spectrum analyzer.



                  If you want to analyze a one channel real baseband signal, the mirrored frequencies are redundant. you should keep the first N/2+1 points.



                  For communications signals, there can be an I and Q (two reals as a single complex), you want to keep them all. the frequencies will not be (in general) symmetric.



                  If you want to calculate the cross spectrum of two reals, there will be mirrored response, but if you want to do something like taking the inverse of the cross spectrum, you should keep both, but only display half.



                  It really depends on the actual application. There really isn't a right or wrong way. There are conventions and exceptions. There are niche applications. Spectrum analyzers that are commercial standalone test equipment, usually have lots of buttons, lots of modes.



                  for your second question, this is what spectral aliasing looks like if you don't apply an antialiasing filter prior to the DFT.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 5 hours ago

























                  answered 5 hours ago









                  Stanley PawlukiewiczStanley Pawlukiewicz

                  6,6922523




                  6,6922523





















                      0












                      $begingroup$

                      The most precise way to deal with them is to compare them using the algorythm used in the Wigner timer frequency distribution.



                      It's a processing intensive way of comparing the real and imaginary results of the FFT, I am completely ignorant of the other types of FFT implementations.



                      The wigner time frequency distribution uses both products to construct a quantum uncertainty distribution, a bell curve of some kind to describe where the amplitude probably was, for the time and frequency domain, a bit like electrons and photons can be in multiple places at once, the time-frequency graph has an unknown and stochastic basis that can be implemented into a graph. It results the most precise FFT frequency graph according to the professors.



                      It is one way of processing the real and imaginary signals, there are probably more popular ones, I am a bit ignorant, even a 3rd year maths or physics student can't easily program it.



                      https://en.wikipedia.org/wiki/Wigner_distribution_function#Cross_term_property



                      They say In the ancestral physics Wigner quasi-probability distribution has useful physics consequences, required for precision. By contrast, the short-time Fourier transform does not have this feature. Negative features of the WDF are reflective of the Gabor limit of the classical signal and physically unrelated to any possible underlay of quantum structure.






                      share|improve this answer











                      $endgroup$

















                        0












                        $begingroup$

                        The most precise way to deal with them is to compare them using the algorythm used in the Wigner timer frequency distribution.



                        It's a processing intensive way of comparing the real and imaginary results of the FFT, I am completely ignorant of the other types of FFT implementations.



                        The wigner time frequency distribution uses both products to construct a quantum uncertainty distribution, a bell curve of some kind to describe where the amplitude probably was, for the time and frequency domain, a bit like electrons and photons can be in multiple places at once, the time-frequency graph has an unknown and stochastic basis that can be implemented into a graph. It results the most precise FFT frequency graph according to the professors.



                        It is one way of processing the real and imaginary signals, there are probably more popular ones, I am a bit ignorant, even a 3rd year maths or physics student can't easily program it.



                        https://en.wikipedia.org/wiki/Wigner_distribution_function#Cross_term_property



                        They say In the ancestral physics Wigner quasi-probability distribution has useful physics consequences, required for precision. By contrast, the short-time Fourier transform does not have this feature. Negative features of the WDF are reflective of the Gabor limit of the classical signal and physically unrelated to any possible underlay of quantum structure.






                        share|improve this answer











                        $endgroup$















                          0












                          0








                          0





                          $begingroup$

                          The most precise way to deal with them is to compare them using the algorythm used in the Wigner timer frequency distribution.



                          It's a processing intensive way of comparing the real and imaginary results of the FFT, I am completely ignorant of the other types of FFT implementations.



                          The wigner time frequency distribution uses both products to construct a quantum uncertainty distribution, a bell curve of some kind to describe where the amplitude probably was, for the time and frequency domain, a bit like electrons and photons can be in multiple places at once, the time-frequency graph has an unknown and stochastic basis that can be implemented into a graph. It results the most precise FFT frequency graph according to the professors.



                          It is one way of processing the real and imaginary signals, there are probably more popular ones, I am a bit ignorant, even a 3rd year maths or physics student can't easily program it.



                          https://en.wikipedia.org/wiki/Wigner_distribution_function#Cross_term_property



                          They say In the ancestral physics Wigner quasi-probability distribution has useful physics consequences, required for precision. By contrast, the short-time Fourier transform does not have this feature. Negative features of the WDF are reflective of the Gabor limit of the classical signal and physically unrelated to any possible underlay of quantum structure.






                          share|improve this answer











                          $endgroup$



                          The most precise way to deal with them is to compare them using the algorythm used in the Wigner timer frequency distribution.



                          It's a processing intensive way of comparing the real and imaginary results of the FFT, I am completely ignorant of the other types of FFT implementations.



                          The wigner time frequency distribution uses both products to construct a quantum uncertainty distribution, a bell curve of some kind to describe where the amplitude probably was, for the time and frequency domain, a bit like electrons and photons can be in multiple places at once, the time-frequency graph has an unknown and stochastic basis that can be implemented into a graph. It results the most precise FFT frequency graph according to the professors.



                          It is one way of processing the real and imaginary signals, there are probably more popular ones, I am a bit ignorant, even a 3rd year maths or physics student can't easily program it.



                          https://en.wikipedia.org/wiki/Wigner_distribution_function#Cross_term_property



                          They say In the ancestral physics Wigner quasi-probability distribution has useful physics consequences, required for precision. By contrast, the short-time Fourier transform does not have this feature. Negative features of the WDF are reflective of the Gabor limit of the classical signal and physically unrelated to any possible underlay of quantum structure.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 4 hours ago

























                          answered 4 hours ago









                          com.prehensiblecom.prehensible

                          30719




                          30719



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Signal Processing Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              Use MathJax to format equations. MathJax reference.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdsp.stackexchange.com%2fquestions%2f58439%2fhow-to-deal-with-the-mirrored-components-of-a-fft-and-another-question%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                              Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                              199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單