pathsim.blocks.rf.filters module
- class pathsim.blocks.rf.filters.ButterworthLowpassFilter(Fc, n)[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.rf.filters.ButterworthHighpassFilter(Fc, n)[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.rf.filters.ButterworthBandpassFilter(Fc, n)[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.rf.filters.ButterworthBandstopFilter(Fc, n)[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.rf.filters.AllpassFilter(T, n=1)[source]
Bases:
StateSpaceDirect implementation of an Allpass filter using Pade approximants. The transfer function of the ideal allpass is
H(s) = exp(-sT) = exp(-sT/2) / exp(sT/2)
where T is the time delay. This implementation uses Pade approximation of the exponential to create a n-th order LTI statespace model that is used for the numerical integration internally.