skrf.frequency.Frequency.from_f

classmethod Frequency.from_f(f, *args, **kwargs)[source]

Construct Frequency object from a frequency vector.

The unit is set by kwarg ‘unit’

Parameters:
  • f (array-like) – frequency vector
  • **kwargs (*args,) –

    passed on to __init__().

Returns:

myfrequency – the Frequency object

Return type:

Frequency object

Examples

>>> f = npy.linspace(75,100,101)
>>> rf.Frequency.from_f(f, unit='ghz')