Skip to content

NWaves for MATLAB and sciPy users

Tim Sharii edited this page Mar 8, 2020 · 11 revisions

To be continued...

sciPy NWaves

Zero-phase filtering

y = scipy.signal.filtfilt(num, den, x)
var filter = new ZiFilter(num, den);
var y = filter.ZeroPhase(x);

Second Order Sections

sos = scipy.signal.tf2sos(num, den)
var tf = new TransferFunction(num, den);
var sos = DesignFilter.TfToSos(tf);
y = scipy.signal.sosfilt(sos, x)
var tf = new TransferFunction(num, den);
var sos = DesignFilter.TfToSos(tf);
var filter = new FilterChain(sos);
var y = filter.ApplyTo(x);
Clone this wiki locally