skrf.network.Network.resample

Network.resample(freq_or_n, **kwargs)

Interpolate the current Network along frequency axis (inplace).

The input ‘freq_or_n` can be either a new Frequency or an int, or a new frequency vector (in Hz).

See interpolate() for more information.

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()

  • **kwargs (keyword arguments) – passed to scipy.interpolate.interp1d() initializer.

Returns:

The interpolation is performed inplace.

Return type:

None

See also

resample, interpolate, interpolate_from_f