skrf.frequency.Frequency.__init__

Frequency.__init__(start=0, stop=0, npoints=0, unit='ghz', sweep_type='lin')[source]

Frequency initializer.

Creates a Frequency object from start/stop/npoints and a unit. Alternatively, the class method from_f() can be used to create a Frequency object from a frequency vector instead.

Parameters:
  • start (number) – start frequency in units of unit
  • stop (number) – stop frequency in units of unit
  • npoints (int) – number of points in the band.
  • unit (['hz','khz','mhz','ghz']) – frequency unit of the band. This is used to create the attribute f_scaled. It is also used by the Network class for plots vs. frequency.
  • sweep_type (['lin', 'log']) – type of the sweep. ‘lin’ for linear and ‘log’ for logarithmic.

Notes

The attribute unit sets the property freqMultiplier, which is used to scale the frequency when f_scaled is referenced.

See also

from_f()
constructs a Frequency object from a frequency vector instead of start/stop/npoints.

Examples

>>> wr1p5band = Frequency(500,750,401, 'ghz')