cbadc.analog_signal.random.BinaryReferenceSignal

class cbadc.analog_signal.random.BinaryReferenceSignal(T: float, amplitude: float = 1.0, offset: float = 0.0)[source]

Bases: _FiniteRandomSignal

A binary reference signal.

Parameters
  • T (float) – The period of the signal.

  • set ({`float, …}) – The set of possible values of the signal.

Example

>>> from cbadc.analog_signal import BinaryReferenceSignal
>>> u = BinaryReferenceSignal(1, 1, 0)

Methods

__init__(T[, amplitude, offset])

evaluate(t)

Evaluate the signal at time \(t\).

symbolic()

Returns as symbolic exression

tick()

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

evaluate(t: float) float

Evaluate the signal at time \(t\).

Parameters

t (float) – the time instance for evaluation.

Returns

The analog signal value

Return type

float

symbolic() Symbol

Returns as symbolic exression

Returns

the resulting function

Return type

sympy.Symbol

tick()

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