1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Calculating the time constant for a variying data set

  1. Apr 15, 2013 #1
    I have a large data set consisting of varying magnitude over time in the form of sine+cos. I want to apply a high pass filter to the data, but i'm not sure how to calculate the time constant for the data. I produce a power spectrum of the data that i can visually inspect to figure out where i want the cutoff to occur (typically between 2 and 10 μHz).

    here is how i am implementing the algorithm, i just need a way to calculate the time constant

    Code (Text):

    dt = (time[1] - time[0]) * 86400 ; converting from days to sec
    timeConstant =  ?
    alpha = timeConstant / (timeConstant + dt)

    for i = 1 to sizeOfData
        mag[i] = alpha * (mag[i-1] + (time[i] - time[i-1]))
    end
     
    can anyone help?
     
    Last edited: Apr 15, 2013
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted



Similar Discussions: Calculating the time constant for a variying data set
Loading...