param_coercion: Coerce Electrical Network Parameters Inputs

param_coercionR Documentation

Coerce Electrical Network Parameters Inputs

Description

Checks and converts the input parameters to the electrical network parameter conversion functions

Usage

coerce_params(params)

coerce_z0(z0)

Arguments

params

Input network parameters. Must be one of:

2x2 Matrix
S11 S12
S21 S22
Vector of length 4

S11 S21 S12 S22

z0

Network parameter characteristic impedance. Must be one of:

NA, NULL

Defaults to 50ohm input and output

Single numeric

Same input and output characteristic impedance

Vector of length 2

Input and output impedance, respectively

Value

Input coerced into a 2x2 matrix (params) or a vector of length 2 (z0) to be used in the conversions

Examples

rftk:::coerce_params(c(0.1, 0.5, 0.5, 0.1))
rftk:::coerce_params(matrix(c(0.1, 0.5, 0.5, 0.1), ncol = 2))

rftk:::coerce_z0(50)
rftk:::coerce_z0(c(50,100))

aaronmanderson3/rftk documentation built on July 30, 2023, 1:19 p.m.