skrf.frequency.Frequency
 class skrf.frequency.Frequency(start=0, stop=0, npoints=0, unit=None, sweep_type='lin')[source]
A frequency band.
The frequency object provides a convenient way to work with and access a frequency band. It contains a frequency vector as well as a frequency unit. This allows a frequency vector in a given unit to be available (
f_scaled
), as well as an absolute frequency axis in ‘Hz’ (f
).A Frequency object can be created from either (start, stop, npoints) using the default constructor,
__init__()
. Or, it can be created from an arbitrary frequency vector by using the class methodfrom_f()
.Internally, the frequency information is stored in the f property combined with the unit property. All other properties, start stop, etc are generated from these.
Attributes
Center frequency in Hz. 

Closes idx of 

Center frequency in 

The gradient of the frequency vector. 

The gradient of the frequency vector (in unit of 

The gradient of the frequency vector (in radians). 

Frequency vector in Hz. 

Frequency vector in units of 

Multiplier for formatting axis. 

Frequency unit multipliers. 

Number of points in the frequency. 

The frequency span. 

The frequency span. 

Starting frequency in Hz. 

Starting frequency in 

The interfrequency step size (in Hz) for evenlyspaced frequency sweeps 

The interfrequency step size (in 

Stop frequency in Hz. 

Stop frequency in 

Frequency sweep type. 

Time vector in s. 

Time vector in ns. 

Unit of this frequency band. 

Dictionary to convert unit string with correct capitalization for display. 

Angular frequency in radians/s. 
Methods
Frequency initializer. 

Validate the frequency values 

Returns a new copy of this frequency. 

Drop duplicate and invalid frequency values and return the dropped indices 

Construct Frequency object from a frequency vector. 

Label the xaxis of a plot. 

Calculates overlapping frequency between self and f2. 

Plot something vs this frequency. 

Round off frequency values to a specified precision. 