Skip to content

RF Touchstone


RF Touchstone / touchstone / TouchstoneMatrix

Type Alias: TouchstoneMatrix

TouchstoneMatrix = Complex[][][]

Defined in: src/touchstone.ts:99

Network parameter matrix stored as complex numbers.

Remarks

The matrix is a 3D array with the following dimensions:

  • First dimension: output port index (0 to nports-1)
  • Second dimension: input port index (0 to nports-1)
  • Third dimension: frequency point index

For example:

  • matrix[i][j][k] represents the parameter from port j+1 to port i+1 at frequency k
  • For S-parameters: matrix[1][0][5] is S₂₁ at the 6th frequency point

Special case for 2-port networks:

  • Indices are swapped to match traditional Touchstone format
  • matrix[0][1][k] represents S₁₂ (not S₂₁)