skrf.networkSet.NetworkSet.interpolate_frequency

NetworkSet.interpolate_frequency(freq_or_n, basis='s', coords='cart', f_kwargs=None, **kwargs)[source]

Interpolates each network in the set by frequency by calling Network.interpolate().

Parameters:
  • freq_or_n (Frequency or int or list-like) –

    The new frequency over which to interpolate. this arg may be one of the following:

    • a new Frequency object

    • an int: the current frequency span is resampled linearly.

    • a list-like: create a new frequency using from_f()

  • basis (['s','z','y','a'], etc) – The network parameter to interpolate

  • coords (string) – Coordinate system to use for interpolation: ‘cart’ or ‘polar’: ‘cart’ is cartesian is Re/Im. ‘polar’ is unwrapped phase/mag

  • f_kwargs (dict) – Key word arguments that are passed to the new Frequency object

  • **kwargs (keyword arguments) –

    passed to scipy.interpolate.interp1d() initializer. kind controls interpolation type.

    kind = rational uses interpolation by rational polynomials.

    d kwarg controls the degree of rational polynomials when kind`=`rational. Defaults to 4.

Returns:

NetworkSet – New NetworkSet with interpolated frequencies

Return type:

NetworkSet