cbadc.analog_signal.impulse_responses.RCImpulseResponse

class cbadc.analog_signal.impulse_responses.RCImpulseResponse(tau: float, t0: float = 0, amplitude=1.0)[source]

Bases: _ImpulseResponse

Methods

__init__(tau[, t0, amplitude])

evaluate(t)

Returns the impulse response of a RC circuit.

symbolic()

Returns as symbolic exression

tick()

Tick the signal, i.e., update the internal state.

evaluate(t: float) float[source]

Returns the impulse response of a RC circuit.

Specifically, solves

\(\dot{x}(t) = -\frac{1}{\tau} x(t)\)

\(x(0) = 1\)

at time \(t\).

Parameters
  • t (float) – Evaluation at time t.

  • tau (float) – time constant.

  • t0 (float, optional) – starting time

  • amplitude (float, optional) – the amplitude of the impulse response

Returns

the impulse response evaluated at t.

Return type

float

symbolic()[source]

Returns as symbolic exression

Returns

the resulting function

Return type

sympy.Symbol

tick()

Tick the signal, i.e., update the internal state.