Class DoubleBuilder
A builder that can compute values.
Inheritance
System.Object
DoubleBuilder
Implements
IBuilder<System.Double>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SpiceSharpBehavioral.Builders
Assembly: SpiceSharpBehavioral.dll
Syntax
public class DoubleBuilder : IBuilder<double>
Constructors
DoubleBuilder()
Declaration
public DoubleBuilder()
Properties
AbsoluteTolerance
Gets or sets the absolute tolerance.
Declaration
public double AbsoluteTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The absolute tolerance. |
FudgeFactor
Gets or sets the fudge factor.
Declaration
public double FudgeFactor { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The fudge factor. |
FunctionDefinitions
Gets the functions.
Declaration
public Dictionary<string, Func<double[], double>> FunctionDefinitions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Func<System.Double[], System.Double>> | The functions. |
RelativeTolerance
Gets or sets the relative tolerance.
Declaration
public double RelativeTolerance { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The relative tolerance. |
Variables
Gets the variables.
Declaration
public Dictionary<VariableNode, IVariable<double>> Variables { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<VariableNode, SpiceSharp.Simulations.IVariable<System.Double>> | The variables. |
Methods
Build(Node)
Builds the specified value from the specified expression node.
Declaration
public double Build(Node expression)
Parameters
Type | Name | Description |
---|---|---|
Node | expression | The expression node. |
Returns
Type | Description |
---|---|
System.Double | The value. |
BuildNode(Node)
Builds the node.
Declaration
protected virtual double BuildNode(Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | The node. |
Returns
Type | Description |
---|---|
System.Double |
Exceptions
Type | Condition |
---|---|
System.Exception | Unrecognized node |
Implements
See Also
IBuilder<T>