Artifacts and low frequencies FFT.












3












$begingroup$


I am working on analyzing a time signal and want to preform a FFT. However I run in to some artifacts at low frequencies. I have managed to reproduce the behavior in a test signal. Given by
$S(t) = theta (0.3-t)[sin(2 pi 30 t)+sin(2 pi 100 t) + 3.0]$
In other words a signal that is zero up to t = 0.3 and then a combination of two sine waves with frequency 30 and 100 Hz.



enter image description here



This gives the following DFT, amplitudes.
enter image description here



I have tried removing the mean, windowing and combinations of the two. The only thing that seems to help is either to remove the constant or to make the time interval, where the function is zero, shorter.Also need to window it.



So why not just cut it off and be done with it? Well for this test signal that would be an ideal solution, but for my real signal I do not really want to do that and it do not seem to help either.



Do anyone know what causes this behavior and how to fix it?



EDIT: The plot do not include the DC term.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Can you elaborate on what part of the plot is an artifact? The DC component is there, so the value at zero frequency is certainly not an artifact. Are you referring to the small peaks between DC and your first frequency component?
    $endgroup$
    – rajb245
    Jan 21 '14 at 17:06






  • 1




    $begingroup$
    You have two step discontinuities and a DC component. Basically you are multiplying a signal composed of a DC term and two sinusoids by a rectangular signal. In the frequency domain this is convolution, hence you would expect to see $operatorname{sinc}$ 'smearing' of the basic components, which is exactly what you have.
    $endgroup$
    – copper.hat
    Jan 21 '14 at 17:09








  • 1




    $begingroup$
    If this is what you mean, then it is no artifact. Your signal "turns on" in an infinitesimal amount of time. Resolving this sharp transition requires infinite bandwidth, so you are seeing the effect of the sharp transition "spraying" frequencies out of band. In your real signal, the transition will not be a step transition; it will occur over a finite amount of time. You can replace your step function with a finite-rise time, smooth function like atan or erfc, appropriately shifted and scaled. This will suppress some of what you call "artifact".
    $endgroup$
    – rajb245
    Jan 21 '14 at 17:14












  • $begingroup$
    Ah, I forgot to mention that this is not including the DC component. The zero frequency amplitude is not in this plot.
    $endgroup$
    – HaakonA
    Jan 21 '14 at 17:16










  • $begingroup$
    You still have the $operatorname{sinc}$ 'smearing' of the DC component, so you will likely have some large low frequency terms.
    $endgroup$
    – copper.hat
    Jan 22 '14 at 20:30
















3












$begingroup$


I am working on analyzing a time signal and want to preform a FFT. However I run in to some artifacts at low frequencies. I have managed to reproduce the behavior in a test signal. Given by
$S(t) = theta (0.3-t)[sin(2 pi 30 t)+sin(2 pi 100 t) + 3.0]$
In other words a signal that is zero up to t = 0.3 and then a combination of two sine waves with frequency 30 and 100 Hz.



enter image description here



This gives the following DFT, amplitudes.
enter image description here



I have tried removing the mean, windowing and combinations of the two. The only thing that seems to help is either to remove the constant or to make the time interval, where the function is zero, shorter.Also need to window it.



So why not just cut it off and be done with it? Well for this test signal that would be an ideal solution, but for my real signal I do not really want to do that and it do not seem to help either.



Do anyone know what causes this behavior and how to fix it?



EDIT: The plot do not include the DC term.










share|cite|improve this question











$endgroup$












  • $begingroup$
    Can you elaborate on what part of the plot is an artifact? The DC component is there, so the value at zero frequency is certainly not an artifact. Are you referring to the small peaks between DC and your first frequency component?
    $endgroup$
    – rajb245
    Jan 21 '14 at 17:06






  • 1




    $begingroup$
    You have two step discontinuities and a DC component. Basically you are multiplying a signal composed of a DC term and two sinusoids by a rectangular signal. In the frequency domain this is convolution, hence you would expect to see $operatorname{sinc}$ 'smearing' of the basic components, which is exactly what you have.
    $endgroup$
    – copper.hat
    Jan 21 '14 at 17:09








  • 1




    $begingroup$
    If this is what you mean, then it is no artifact. Your signal "turns on" in an infinitesimal amount of time. Resolving this sharp transition requires infinite bandwidth, so you are seeing the effect of the sharp transition "spraying" frequencies out of band. In your real signal, the transition will not be a step transition; it will occur over a finite amount of time. You can replace your step function with a finite-rise time, smooth function like atan or erfc, appropriately shifted and scaled. This will suppress some of what you call "artifact".
    $endgroup$
    – rajb245
    Jan 21 '14 at 17:14












  • $begingroup$
    Ah, I forgot to mention that this is not including the DC component. The zero frequency amplitude is not in this plot.
    $endgroup$
    – HaakonA
    Jan 21 '14 at 17:16










  • $begingroup$
    You still have the $operatorname{sinc}$ 'smearing' of the DC component, so you will likely have some large low frequency terms.
    $endgroup$
    – copper.hat
    Jan 22 '14 at 20:30














3












3








3





$begingroup$


I am working on analyzing a time signal and want to preform a FFT. However I run in to some artifacts at low frequencies. I have managed to reproduce the behavior in a test signal. Given by
$S(t) = theta (0.3-t)[sin(2 pi 30 t)+sin(2 pi 100 t) + 3.0]$
In other words a signal that is zero up to t = 0.3 and then a combination of two sine waves with frequency 30 and 100 Hz.



enter image description here



This gives the following DFT, amplitudes.
enter image description here



I have tried removing the mean, windowing and combinations of the two. The only thing that seems to help is either to remove the constant or to make the time interval, where the function is zero, shorter.Also need to window it.



So why not just cut it off and be done with it? Well for this test signal that would be an ideal solution, but for my real signal I do not really want to do that and it do not seem to help either.



Do anyone know what causes this behavior and how to fix it?



EDIT: The plot do not include the DC term.










share|cite|improve this question











$endgroup$




I am working on analyzing a time signal and want to preform a FFT. However I run in to some artifacts at low frequencies. I have managed to reproduce the behavior in a test signal. Given by
$S(t) = theta (0.3-t)[sin(2 pi 30 t)+sin(2 pi 100 t) + 3.0]$
In other words a signal that is zero up to t = 0.3 and then a combination of two sine waves with frequency 30 and 100 Hz.



enter image description here



This gives the following DFT, amplitudes.
enter image description here



I have tried removing the mean, windowing and combinations of the two. The only thing that seems to help is either to remove the constant or to make the time interval, where the function is zero, shorter.Also need to window it.



So why not just cut it off and be done with it? Well for this test signal that would be an ideal solution, but for my real signal I do not really want to do that and it do not seem to help either.



Do anyone know what causes this behavior and how to fix it?



EDIT: The plot do not include the DC term.







fourier-analysis signal-processing






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 21 '14 at 17:17







HaakonA

















asked Jan 21 '14 at 16:58









HaakonAHaakonA

513




513












  • $begingroup$
    Can you elaborate on what part of the plot is an artifact? The DC component is there, so the value at zero frequency is certainly not an artifact. Are you referring to the small peaks between DC and your first frequency component?
    $endgroup$
    – rajb245
    Jan 21 '14 at 17:06






  • 1




    $begingroup$
    You have two step discontinuities and a DC component. Basically you are multiplying a signal composed of a DC term and two sinusoids by a rectangular signal. In the frequency domain this is convolution, hence you would expect to see $operatorname{sinc}$ 'smearing' of the basic components, which is exactly what you have.
    $endgroup$
    – copper.hat
    Jan 21 '14 at 17:09








  • 1




    $begingroup$
    If this is what you mean, then it is no artifact. Your signal "turns on" in an infinitesimal amount of time. Resolving this sharp transition requires infinite bandwidth, so you are seeing the effect of the sharp transition "spraying" frequencies out of band. In your real signal, the transition will not be a step transition; it will occur over a finite amount of time. You can replace your step function with a finite-rise time, smooth function like atan or erfc, appropriately shifted and scaled. This will suppress some of what you call "artifact".
    $endgroup$
    – rajb245
    Jan 21 '14 at 17:14












  • $begingroup$
    Ah, I forgot to mention that this is not including the DC component. The zero frequency amplitude is not in this plot.
    $endgroup$
    – HaakonA
    Jan 21 '14 at 17:16










  • $begingroup$
    You still have the $operatorname{sinc}$ 'smearing' of the DC component, so you will likely have some large low frequency terms.
    $endgroup$
    – copper.hat
    Jan 22 '14 at 20:30


















  • $begingroup$
    Can you elaborate on what part of the plot is an artifact? The DC component is there, so the value at zero frequency is certainly not an artifact. Are you referring to the small peaks between DC and your first frequency component?
    $endgroup$
    – rajb245
    Jan 21 '14 at 17:06






  • 1




    $begingroup$
    You have two step discontinuities and a DC component. Basically you are multiplying a signal composed of a DC term and two sinusoids by a rectangular signal. In the frequency domain this is convolution, hence you would expect to see $operatorname{sinc}$ 'smearing' of the basic components, which is exactly what you have.
    $endgroup$
    – copper.hat
    Jan 21 '14 at 17:09








  • 1




    $begingroup$
    If this is what you mean, then it is no artifact. Your signal "turns on" in an infinitesimal amount of time. Resolving this sharp transition requires infinite bandwidth, so you are seeing the effect of the sharp transition "spraying" frequencies out of band. In your real signal, the transition will not be a step transition; it will occur over a finite amount of time. You can replace your step function with a finite-rise time, smooth function like atan or erfc, appropriately shifted and scaled. This will suppress some of what you call "artifact".
    $endgroup$
    – rajb245
    Jan 21 '14 at 17:14












  • $begingroup$
    Ah, I forgot to mention that this is not including the DC component. The zero frequency amplitude is not in this plot.
    $endgroup$
    – HaakonA
    Jan 21 '14 at 17:16










  • $begingroup$
    You still have the $operatorname{sinc}$ 'smearing' of the DC component, so you will likely have some large low frequency terms.
    $endgroup$
    – copper.hat
    Jan 22 '14 at 20:30
















$begingroup$
Can you elaborate on what part of the plot is an artifact? The DC component is there, so the value at zero frequency is certainly not an artifact. Are you referring to the small peaks between DC and your first frequency component?
$endgroup$
– rajb245
Jan 21 '14 at 17:06




$begingroup$
Can you elaborate on what part of the plot is an artifact? The DC component is there, so the value at zero frequency is certainly not an artifact. Are you referring to the small peaks between DC and your first frequency component?
$endgroup$
– rajb245
Jan 21 '14 at 17:06




1




1




$begingroup$
You have two step discontinuities and a DC component. Basically you are multiplying a signal composed of a DC term and two sinusoids by a rectangular signal. In the frequency domain this is convolution, hence you would expect to see $operatorname{sinc}$ 'smearing' of the basic components, which is exactly what you have.
$endgroup$
– copper.hat
Jan 21 '14 at 17:09






$begingroup$
You have two step discontinuities and a DC component. Basically you are multiplying a signal composed of a DC term and two sinusoids by a rectangular signal. In the frequency domain this is convolution, hence you would expect to see $operatorname{sinc}$ 'smearing' of the basic components, which is exactly what you have.
$endgroup$
– copper.hat
Jan 21 '14 at 17:09






1




1




$begingroup$
If this is what you mean, then it is no artifact. Your signal "turns on" in an infinitesimal amount of time. Resolving this sharp transition requires infinite bandwidth, so you are seeing the effect of the sharp transition "spraying" frequencies out of band. In your real signal, the transition will not be a step transition; it will occur over a finite amount of time. You can replace your step function with a finite-rise time, smooth function like atan or erfc, appropriately shifted and scaled. This will suppress some of what you call "artifact".
$endgroup$
– rajb245
Jan 21 '14 at 17:14






$begingroup$
If this is what you mean, then it is no artifact. Your signal "turns on" in an infinitesimal amount of time. Resolving this sharp transition requires infinite bandwidth, so you are seeing the effect of the sharp transition "spraying" frequencies out of band. In your real signal, the transition will not be a step transition; it will occur over a finite amount of time. You can replace your step function with a finite-rise time, smooth function like atan or erfc, appropriately shifted and scaled. This will suppress some of what you call "artifact".
$endgroup$
– rajb245
Jan 21 '14 at 17:14














$begingroup$
Ah, I forgot to mention that this is not including the DC component. The zero frequency amplitude is not in this plot.
$endgroup$
– HaakonA
Jan 21 '14 at 17:16




$begingroup$
Ah, I forgot to mention that this is not including the DC component. The zero frequency amplitude is not in this plot.
$endgroup$
– HaakonA
Jan 21 '14 at 17:16












$begingroup$
You still have the $operatorname{sinc}$ 'smearing' of the DC component, so you will likely have some large low frequency terms.
$endgroup$
– copper.hat
Jan 22 '14 at 20:30




$begingroup$
You still have the $operatorname{sinc}$ 'smearing' of the DC component, so you will likely have some large low frequency terms.
$endgroup$
– copper.hat
Jan 22 '14 at 20:30










1 Answer
1






active

oldest

votes


















0












$begingroup$


  • compare it with the FFT of $theta (0.3-t)$ and of $$H(t) = theta (0.3-t)[exp(2i pi 30 t)+exp(2 i pi 100 t) + 3.0]$$


  • use a window (hanning)


  • if you understand what's happening, you will understand nearly everything of the FFT.







share|cite|improve this answer









$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "69"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2fmath.stackexchange.com%2fquestions%2f646413%2fartifacts-and-low-frequencies-fft%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$


    • compare it with the FFT of $theta (0.3-t)$ and of $$H(t) = theta (0.3-t)[exp(2i pi 30 t)+exp(2 i pi 100 t) + 3.0]$$


    • use a window (hanning)


    • if you understand what's happening, you will understand nearly everything of the FFT.







    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$


      • compare it with the FFT of $theta (0.3-t)$ and of $$H(t) = theta (0.3-t)[exp(2i pi 30 t)+exp(2 i pi 100 t) + 3.0]$$


      • use a window (hanning)


      • if you understand what's happening, you will understand nearly everything of the FFT.







      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$


        • compare it with the FFT of $theta (0.3-t)$ and of $$H(t) = theta (0.3-t)[exp(2i pi 30 t)+exp(2 i pi 100 t) + 3.0]$$


        • use a window (hanning)


        • if you understand what's happening, you will understand nearly everything of the FFT.







        share|cite|improve this answer









        $endgroup$




        • compare it with the FFT of $theta (0.3-t)$ and of $$H(t) = theta (0.3-t)[exp(2i pi 30 t)+exp(2 i pi 100 t) + 3.0]$$


        • use a window (hanning)


        • if you understand what's happening, you will understand nearly everything of the FFT.








        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jul 20 '15 at 16:43









        reunsreuns

        28515




        28515






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics 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%2fmath.stackexchange.com%2fquestions%2f646413%2fartifacts-and-low-frequencies-fft%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

            Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

            ts Property 'filter' does not exist on type '{}'

            mat-slide-toggle shouldn't change it's state when I click cancel in confirmation window