Table of Contents

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

frequencyUnit FrequencyUnit

The frequency unit.

parameterType ParameterType

The parameter type.

dataFormat DataFormat

The data format.

referenceImpedance double

The reference impedance in ohms.

Properties

DataFormat

Gets the data format (representation) of the network parameter values.

public DataFormat DataFormat { get; }

Property Value

DataFormat

Default

Gets the default Touchstone options (GHz, S, MA, R 50).

public static TouchstoneOptions Default { get; }

Property Value

TouchstoneOptions

FrequencyUnit

Gets the frequency unit used in the data section.

public FrequencyUnit FrequencyUnit { get; }

Property Value

FrequencyUnit

ParameterType

Gets the type of network parameters stored in the file.

public ParameterType ParameterType { get; }

Property Value

ParameterType

ReferenceImpedance

Gets the reference impedance in ohms.

public double ReferenceImpedance { get; }

Property Value

double

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.