lowPass method
void
lowPass(])
Butterworth Low-pass filter.
Params:
- order - The order of the filter
- sampleRate - The sampling rate of the system
- cutoffFrequency - the cutoff frequency
- directFormType - The filter topology. Default direct_form_II
Implementation
void lowPass(int order, double sampleRate, double cutoffFrequency,
[int directFormType = DirectFormAbstract.direct_form_II]) {
_AnalogLowPass analogProto = _AnalogLowPass(order);
analogProto.design();
LayoutBase digitalProto = LayoutBase(order);
LowPassTransform(cutoffFrequency / sampleRate, digitalProto, analogProto);
setLayout(digitalProto, directFormType);
}