Class TouchstoneOptions
- Namespace
- Touchstone.Parser.Models
- Assembly
- Touchstone.Parser.dll
Represents the option line configuration parsed from a Touchstone file. The option line (starting with '#') defines the frequency unit, parameter type, data format, and reference impedance for the file.
public sealed class TouchstoneOptions
- Inheritance
-
TouchstoneOptions
- Inherited Members
Remarks
Default values per the Touchstone specification: frequency unit = GHz, parameter type = S, format = MA, reference impedance = 50 Ω.
Constructors
TouchstoneOptions(FrequencyUnit, ParameterType, DataFormat, double)
Initializes a new instance of the TouchstoneOptions class.
public TouchstoneOptions(FrequencyUnit frequencyUnit = FrequencyUnit.GHz, ParameterType parameterType = ParameterType.S, DataFormat dataFormat = DataFormat.MagnitudeAngle, double referenceImpedance = 50)
Parameters
frequencyUnitFrequencyUnitThe frequency unit.
parameterTypeParameterTypeThe parameter type.
dataFormatDataFormatThe data format.
referenceImpedancedoubleThe reference impedance in ohms.
Properties
DataFormat
Gets the data format (representation) of the network parameter values.
public DataFormat DataFormat { get; }
Property Value
Default
Gets the default Touchstone options (GHz, S, MA, R 50).
public static TouchstoneOptions Default { get; }
Property Value
FrequencyUnit
Gets the frequency unit used in the data section.
public FrequencyUnit FrequencyUnit { get; }
Property Value
ParameterType
Gets the type of network parameters stored in the file.
public ParameterType ParameterType { get; }
Property Value
ReferenceImpedance
Gets the reference impedance in ohms.
public double ReferenceImpedance { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.