Class FrequencyPoint
- Namespace
- Touchstone.Parser.Models
- Assembly
- Touchstone.Parser.dll
Represents the network parameter data at a single frequency point. Contains the frequency value (in Hz) and the N×N matrix of parameter values.
public sealed class FrequencyPoint
- Inheritance
-
FrequencyPoint
- Inherited Members
Constructors
FrequencyPoint(double, NetworkParameter[,])
Initializes a new instance of the FrequencyPoint class.
public FrequencyPoint(double frequencyHz, NetworkParameter[,] parameters)
Parameters
frequencyHzdoubleThe frequency in Hertz.
parametersNetworkParameter[,]The N×N matrix of network parameter values.
Exceptions
- ArgumentException
Thrown when the parameter matrix is not square.
- ArgumentOutOfRangeException
Thrown when frequency is negative.
Properties
FrequencyHz
Gets the frequency in Hertz.
public double FrequencyHz { get; }
Property Value
this[int, int]
Gets the network parameter value for the specified port indices.
public NetworkParameter this[int row, int col] { get; }
Parameters
Property Value
- NetworkParameter
The NetworkParameter at the specified port indices.
Exceptions
- ArgumentOutOfRangeException
Thrown when indices are out of range.
NumberOfPorts
Gets the number of ports (N) in this measurement.
public int NumberOfPorts { get; }
Property Value
Methods
GetParameterMatrix()
Gets the full N×N parameter matrix as a cloned 2D array.
public NetworkParameter[,] GetParameterMatrix()
Returns
- NetworkParameter[,]
A copy of the parameter matrix.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.