pathsim.blocks.differentiator module
- class pathsim.blocks.differentiator.Differentiator(f_max=100.0)[source]
Bases:
BlockDifferentiates the input signal (SISO) using a first order transfer function with a pole at the origin which implements a high pass filter.
\[H_\mathrm{diff}(s) = \frac{s}{1 + s / f_\mathrm{max}}\]The approximation holds for signals up to a frequency of approximately f_max.
Note
Depending on ‘f_max’, the resulting system might become stiff or ill conditioned! As a practical choice set f_max to 3x the highest expected signal frequency.
Example
The block is initialized like this:
#cutoff at 1kHz D = Differentiator(f_max=1e3)
- Parameters:
f_max (float) – highest expected signal frequency
- op_dyn
internal dynamic operator for ODE component
- Type:
- op_alg
internal algebraic operator
- Type: