Class TimeDelay
Delays a signal by a specific number of time steps, keeping an internal buffer of delayed values between iterations.
This is a reasuble class for providing time-delay functionality to simulatable models.
Inherited Members
Namespace: TimeSeriesAnalysis.Dynamic
Assembly: TimeSeriesAnalysis.dll
Syntax
public class TimeDelay
Constructors
| Edit this page View SourceTimeDelay(double, double)
Time delay set in terms of an absolute time, that is translated into a buffer lenght by observing the time base
Declaration
public TimeDelay(double timeBase_s, double timeDelay_s)
Parameters
Type | Name | Description |
---|---|---|
double | timeBase_s | the simulation time interval between each subsequent call to Delay (in seconds) |
double | timeDelay_s | the time delay to be simulated(in seconds). Note that the time delay will be rounded up to neares whole number factor of |
Methods
| Edit this page View SourceDelay(double)
Delays output by a certain number of time steps
Declaration
public double Delay(double inputSignal)
Parameters
Type | Name | Description |
---|---|---|
double | inputSignal | input signal to be delayed |
Returns
Type | Description |
---|---|
double | a version of |