cbadc.analog_signal.random.UniformReferenceSignal
- class cbadc.analog_signal.random.UniformReferenceSignal(T: float, low: float, high: float, offset: float = 0.0, seed: int = 42)[source]
Bases:
_AnalogSignalA Gaussian reference signal.
- Parameters
T (float) – The period of the signal.
low (float) – the lower bound of the signal.
high (float) – the upper bound (non inclusive) of the signal.
offset (float, optional) – The offset of the signal, default is 0.0.
seed (int, optional) – The seed for the random number generator.
Example
>>> from cbadc.analog_signal import UniformReferenceSignal >>> u = UniformReferenceSignal(1, 0, 1)
Methods
__init__(T, low, high[, offset, seed])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[source]
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