Class Pwl
Piecewise linear waveform.
Implements
Inherited Members
Namespace: SpiceSharp.Components
Assembly: SpiceSharp.dll
Syntax
public class Pwl : ParameterSet, IWaveformDescription, ICloneable<IWaveformDescription>, IImportParameterSet<IEnumerable<Point>>, IExportPropertySet<IEnumerable<Point>>, IImportParameterSet<double[]>, IParameterSet
Properties
Points
Gets or sets the waveform points.
Declaration
[ParameterName("points")]
[ParameterInfo("The points of the waveform")]
public IEnumerable<Point> Points { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<Point> | The waveform points |
Methods
Clone()
Clones the instance.
Declaration
public IWaveformDescription Clone()
Returns
Type | Description |
---|---|
IWaveformDescription | The cloned instance. |
Create(IBindingContext)
Creates a waveform instance for the specified simulation and entity.
Declaration
public IWaveform Create(IBindingContext context)
Parameters
Type | Name | Description |
---|---|---|
IBindingContext | context | The binding context. |
Returns
Type | Description |
---|---|
IWaveform | The waveform instance. |
SetPoints(params double[])
Sets the waveform points using a vector sequence of times and values.
Declaration
[ParameterName("points")]
[ParameterInfo("The vector of time and point values")]
public void SetPoints(params double[] vector)
Parameters
Type | Name | Description |
---|---|---|
double[] | vector | The array of alternating timepoints and values. |
ToString()
Returns a string that represents the current piece-wise linear waveform.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current piece-wise linear waveform. |