matlab Bilinear transformation method for analog-to-digital filter conversion in java

Viewed 21

I have the folowing analog filter

num = [6.4/(2*pi)   1];
den =  [6.4/(2*pi)   5];

which I am transfering to digital like this

[ad, bd] = bilinear(num, den, 92e3); 

and I get results like this

ad = [0.999979547445725,-0.999969321168588]
bd = [1,-0.999948868614313]

in Matlab everything works great, since there exist a function for this: https://www.mathworks.com/help/signal/ref/bilinear.html

but I would like to rewrite this in C# (java would also be fine), but sadly I didn't find any Bilinear transformation method for C# or Java, the onlything that is out there, deals with images, not with filters

So does anyone know, is there any Bilinear transformation method, that would deal with filters and know how to convert the s-domain transfer function specified by numerator num and denominator den to a discrete equivalent in java or C# and would produce similar results, that bilinear does?

Thanks for Anwsering and Best Regards

0 Answers
Related