Class DelayedSignal
This class will keep track of one or more signals and can calculate the delayed version of it.
Inherited Members
Namespace: SpiceSharp.Components.Distributed
Assembly: SpiceSharp.dll
Syntax
public class DelayedSignal
Constructors
DelayedSignal(int, double)
Initializes a new instance of the DelayedSignal class.
Declaration
public DelayedSignal(int size, double delay)
Parameters
Type | Name | Description |
---|---|---|
int | size | The number of elements to be stored. |
double | delay | The amount of time to look back. |
Properties
Delay
Gets the delay.
Declaration
public double Delay { get; }
Property Value
Type | Description |
---|---|
double |
InputDerivative
The derivative of the delayed signal with respect to the input.
Declaration
public double InputDerivative { get; }
Property Value
Type | Description |
---|---|
double |
this[int]
Gets the current value with the specified index.
Declaration
public double this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Property Value
Type | Description |
---|---|
double | The value. |
Size
Gets the number of values stored by the delayed signal.
Declaration
public int Size { get; }
Property Value
Type | Description |
---|---|
int |
Values
Gets the values at the probed point.
Declaration
public IReadOnlyList<double> Values { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<double> |
Methods
AcceptProbedValues()
Accepts the last probed values.
Declaration
public void AcceptProbedValues()
Clear()
Clears any memory in the delayed signal.
Declaration
public void Clear()
GetTime(int)
Gets a tracked timepoint.
Declaration
public double GetTime(int back)
Parameters
Type | Name | Description |
---|---|---|
int | back | The number of points to go back in time. |
Returns
Type | Description |
---|---|
double | The time point in history. |
GetValue(int, int)
Get a tracked value.
Declaration
public double GetValue(int back, int index)
Parameters
Type | Name | Description |
---|---|---|
int | back | The number of points to go back in time. |
int | index | The index. |
Returns
Type | Description |
---|---|
double | The value in history. |
Probe(double, bool)
Probes the specified timepoint.
Declaration
public void Probe(double time, bool breakpoint)
Parameters
Type | Name | Description |
---|---|---|
double | time | The time. |
bool | breakpoint | If |
SetProbedValues(params double[])
Sets the probed values.
Declaration
public void SetProbedValues(params double[] values)
Parameters
Type | Name | Description |
---|---|---|
double[] | values | The values. |