Amplifier¶
- class pathsim.blocks.amplifier.Amplifier(gain=1.0)[source]¶
Bases:
BlockAmplifies the input signal by multiplication with a constant gain term like this:
\[y(t) = \mathrm{gain} \cdot u(t)\]Note
This block is purely algebraic and its operation (op_alg) will be called multiple times per timestep, each time when Simulation._update(t) is called in the global simulation loop.
Example
The block is initialized like this:
#amplification by factor 5 A = Amplifier(gain=5)
- Parameters:
gain (float) – amplifier gain