tardis.utilities.simulators.periodicvalue module

class tardis.utilities.simulators.periodicvalue.PeriodicValue(period: float, amplitude: float, offset: float = 0, phase: float = 0)[source]

Bases: Simulator

Provides a time-periodic sinusoidally varying value relative to the time the object was created.

get_value() float[source]

Returns the current value relative to the time of initialization.

Returns

current value of sine wave

Return type

float