ltv
Newbie level 2
hi there,
I am trying to learn both: DSP and programming in Android. But I stuck at beginning of my project.
I have a transfer function:
\[H(z) = \frac{1}{32} \frac{(1-z^{-6})^{2}}{(1-z^{-1})^{2}}\]
\[ y(nT) = 2y(nT - T) - y(nT - 2T) + x(nT) - 2x(nT - 6T) + x(nT - 12T)\]
and I don't know how to implement it in java.
1) How can I deal with delay?
2) Do I have to put to my function all my raw data? Cuz if I want to work someday on data from bluetooth I guess this will be impossible
Yeah, I know. I don't understand basic stuff. But i really want to learn.
I found on wikipedia a simple code:
but there is nothing about a transfer function which I should use (I am trying to implement Pan-Tompkins algorithm)
Could someone please show me the way? Whatever? I will be grateful.
Best regards,
Kate
I am trying to learn both: DSP and programming in Android. But I stuck at beginning of my project.
I have a transfer function:
\[H(z) = \frac{1}{32} \frac{(1-z^{-6})^{2}}{(1-z^{-1})^{2}}\]
\[ y(nT) = 2y(nT - T) - y(nT - 2T) + x(nT) - 2x(nT - 6T) + x(nT - 12T)\]
and I don't know how to implement it in java.
1) How can I deal with delay?
2) Do I have to put to my function all my raw data? Cuz if I want to work someday on data from bluetooth I guess this will be impossible
Yeah, I know. I don't understand basic stuff. But i really want to learn.
I found on wikipedia a simple code:
Code:
for i from 1 to n
y[i] := y[i-1] + α * (x[i] - y[i-1])
Could someone please show me the way? Whatever? I will be grateful.
Best regards,
Kate