cbadc.analog_signal.random.TernaryReferenceSignal
- class cbadc.analog_signal.random.TernaryReferenceSignal(T: float, amplitude: float = 1.0, offset: float = 0.0)[source]
Bases:
_FiniteRandomSignalA ternary reference signal.
- Parameters
T (float) – The period of the signal.
amplitude (float, optional) – The amplitude of the signal, default is 1.0.
offset (float, optional) – The offset of the signal, default is 0.0.
Example
>>> from cbadc.analog_signal import TernaryReferenceSignal >>> u = TernaryReferenceSignal(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
- symbolic() Symbol
Returns as symbolic exression
- Returns
the resulting function
- Return type
sympy.Symbol
- tick()
Tick the signal, i.e., update the internal state.