Amplifier

class pathsim.blocks.amplifier.Amplifier(gain=1.0)[source]

Bases: Block

Amplifies 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

op_alg

internal algebraic operator

Type:

Operator

update(t)[source]

update system equation in fixed point loop

Parameters:

t (float) – evaluation time