×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Need a filter identified.
2

Need a filter identified.

Need a filter identified.

(OP)
I have a filter, I need someone to bell this cat;


FilteredValue = (0.3 x LastFilteredValue) + [(1.0 - 0.3) x Value]
LastFilteredValue = FilteredValue

What kind of filter is this, weighted box?
Can you point me to an explaination somewhere?

Thanks for the help.

RE: Need a filter identified.

2
I think that it has a variety of names. Alpha-beta is one name.  

TTFN

RE: Need a filter identified.

It appears to me that it is a single pole, recursive, low pass filter.

RE: Need a filter identified.

To me, it looks like a first order low pass. Very similar to an RC filter. Also known as an IIR 1st order LP filter. And that is what sreid says too.

RE: Need a filter identified.

(OP)
Huh, never heard of an Alpha-beta IRstuff.

I will search for all combinations.

Thanks much guys..

BTW: It's a nice filter for microprocessors because you can avoid division.

RE: Need a filter identified.

It does look like something used in Alpha-Beta, but only the Alpha part (=0.3) is used.

In a physical (Newton) system you usually have Distance, speed, acceleration etc. With those 3 states you have a Alpha-Beta-Gamma (or G-H-K) filter, where the 3 'Greeks' are the gain parameters for each state. (Not including the derived time matrix. 1, t, sqr(t)/2 etc.)

Digital filters like this are the core in regulators, trackers and Kalman filters.

RE: Need a filter identified.

IRstuff, that book certainly helped me a lot about a year ago!!!!
I even made it through all the matrix stuff implementing a full Kalman thing

I later settled for the easier Simpson filter also mentioned there.

RE: Need a filter identified.

itsmoked,

Do you want or need the equations for the coefficients of the filter?

RE: Need a filter identified.

(OP)
sreid; Thank you, but no.

This it turns out, is more generally called, a Weighted Moving Average filter.  Turns out it is one of the three standard stock market filters used. Apparently traders frequently use a 200 day moving average. But if a stock starts moving quickly with large amplitude the two hundred day moving average doesn't reflect this worth a dang.  So they weight the previous 199 days less and "today" more.

Which is what this filter does (and works well!). The reason I wrote it with that strange second subtraction is to remind me that what ever percent you weight the past with, you must contend with on the present, so everything stays 100%.

Thanks everyone for the help!

RE: Need a filter identified.

Weighted moving average is slightly different, since stale data beyond the cutoff is ignored completely.  

The filter you describe would be more colloquially called a weighted fading memory filter, because, as long as you have precision to resolve it, every old sample is still weighted into the current value.  The weighting of the old value dictates the time constant of the memory of the filter.

TTFN

RE: Need a filter identified.

(OP)
I would agree with that title, for those reasons, absolutely.

I might even call it a "weighted infinite memory filter".
Since there is a piece of the very first reading in the latest calculation.  Rather like trying to dilute a batch of liquid by changing out 70% over and over.

RE: Need a filter identified.

Yes, that's why it is called an IIR filter (Infinite Impulse Response). Energy from the first sample never really dies (if you forget about truncation). The other type (FIR, Finite Impulse Response) does away with the earlier samples after a finite number of clocks.

Is my terminology very outdated? Or do we not speak the same language when it comes to filters?

RE: Need a filter identified.

It just depends on the context.

EE -- IIR, FIR
Finance -- Moving average
Radar -- alpha-beta
Navigation -- Kalman

commensurate with those is that the implementer is usually a different discipline as well

TTFN

RE: Need a filter identified.

Thanks! IR.

Much needed clarification!!

I think that I am too much EE - and very little finance or navigation.

RE: Need a filter identified.

(OP)
IRstuff; That is right on! That's exactly what I was seeing in my search of at least 100 sites.

It never solidified in my mind in that clear form.

A star!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources