Closed ToGoOrNotToGo closed 3 years ago
You can use FilterChain
class:
// specify TF explicitly (numerator and denominator)
var tf = new TransferFunction(num, den);
var sos = DesignFilter.TfToSos(tf);
// or get TF from filter designed by NWaves:
// var order = 10;
// var filter = new Butterworth.BandPassFilter(4f/250, 8f/250, order);
// var sos = DesignFilter.TfToSos(filter.Tf);
var sosFilter = new FilterChain(sos);
var y = sosFilter.ApplyTo(x);
Oh, sorry, I didn't find this page on your wiki. Cool stuff! Thanks a lot!
How to use the transfer functions from DesignFilter.TfToSos and apply the filter direct? Is it possible with NWaves?