Filters¶
- class pathsim.blocks.filters.ButterworthLowpassFilter(Fc=100, n=2)[source]¶
Bases:
StateSpaceDirect implementation of a low pass butterworth filter block.
Follows the same structure as the ‘StateSpace’ block in the ‘pathsim.blocks’ module. The numerator and denominator of the filter transfer function are generated and then the transfer function is realized as a state space model.
- class pathsim.blocks.filters.ButterworthHighpassFilter(Fc=100, n=2)[source]¶
Bases:
StateSpaceDirect implementation of a high pass butterworth filter block.
Follows the same structure as the ‘StateSpace’ block in the ‘pathsim.blocks’ module. The numerator and denominator of the filter transfer function are generated and then the transfer function is realized as a state space model.
- class pathsim.blocks.filters.ButterworthBandpassFilter(Fc=[50, 100], n=2)[source]¶
Bases:
StateSpaceDirect implementation of a bandpass butterworth filter block.
Follows the same structure as the ‘StateSpace’ block in the ‘pathsim.blocks’ module. The numerator and denominator of the filter transfer function are generated and then the transfer function is realized as a state space model.
- class pathsim.blocks.filters.ButterworthBandstopFilter(Fc=[50, 100], n=2)[source]¶
Bases:
StateSpaceDirect implementation of a bandstop butterworth filter block.
Follows the same structure as the ‘StateSpace’ block in the ‘pathsim.blocks’ module. The numerator and denominator of the filter transfer function are generated and then the transfer function is realized as a state space model.
- class pathsim.blocks.filters.AllpassFilter(fs=100, n=1)[source]¶
Bases:
StateSpaceDirect implementation of a first order allpass filter, or a cascade of n 1st order allpass filters
\[H(s) = \frac{s - 2\pi f_s}{s + 2\pi f_s}\]where f_s is the frequency, where the 1st order allpass has a 90 deg phase shift.