I am using a filter following equations from papers. It is basically the difference between exponential moving average and simple moving average.


$$ S[n]=\frac{1}{\alpha_S}\sum_{k=0}^{\alpha_S}f[n-k]$$

$$ g[n]=S[n]-L[n]$$

  • $f[n]$ - original signal
  • $g[n]$ - filtered signal
  • $\alpha$ - window size

I can find their transfer function separately for $L$ and $S$, but I have no idea how to get transfer function of $g[n]$. Anyone please guide me, I would really appreciate it.


Because you are using a linear combination of the two filters, you can find the resulting transfer function by directly subtracting them from each other. If you want to do this, then you have to make sure that they have the same denominator, such that the total transfer function is one quotient of polynomials. If you do not know how to do this, you could check this example.

| improve this answer | |
  • $\begingroup$ Thanks for your suggestion. but there might be a problem in the term g[n]. because L[n] requires data from L[n-1] whereas S[n] only requires raw data f[n-k]. Do I understand it correctly? $\endgroup$ – Thanawin Oct 9 '16 at 12:20
  • $\begingroup$ Oh..... I think I might got it now. $\endgroup$ – Thanawin Oct 9 '16 at 12:53

You have two parallel systems as follows:

enter image description here

The transfer function of parallel systems is sum of the transfer functions of each system.

| improve this answer | |
  • 1
    $\begingroup$ This is correct, why the downvote? $\endgroup$ – Matt L. Oct 8 '16 at 9:19
  • $\begingroup$ No problem @MattL. I think the anonymous downvoter simply doesn't like the post. Otherwise s/he could type! $\endgroup$ – msm Oct 8 '16 at 9:21
  • $\begingroup$ (+1) yes this seems correct, but then OP is using t for what purpose? $\endgroup$ – Fat32 Oct 8 '16 at 9:45
  • $\begingroup$ You are right @Fat32, it is conflicting considering the tags (discrete signals and z-transform). But the concept is the same with continuous systems except we will have Laplace transform. $\endgroup$ – msm Oct 8 '16 at 10:01
  • $\begingroup$ Thanks for your answer. This would be very helpful for my uderstanding. I will try and might have another question. please don't be bored with me. $\endgroup$ – Thanawin Oct 9 '16 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.