skrf.vectorFitting.VectorFitting.get_model_response

VectorFitting.get_model_response(i, j, freqs=None)[source]

Returns one of the frequency responses \(H_{i+1,j+1}\) of the fitted model \(H\).

Parameters:
  • i (int) – Row index of the response in the response matrix.

  • j (int) – Column index of the response in the response matrix.

  • freqs (list of float or ndarray or None, optional) – List of frequencies for the response plot. If None, the sample frequencies of the fitted network in network are used.

Returns:

response – Model response \(H_{i+1,j+1}\) at the frequencies specified in freqs (complex-valued Numpy array).

Return type:

ndarray

Examples

Get fitted S11 at 101 frequencies from 0 Hz to 10 GHz:

>>> import skrf
>>> vf = skrf.VectorFitting(skrf.data.ring_slot)
>>> vf.vector_fit(3, 0)
>>> s11_fit = vf.get_model_response(0, 0, numpy.linspace(0, 10e9, 101))