vunits.convert.freq_to_temp¶
-
vunits.convert.
freq_to_temp
(freq, units_in='Hz', return_quantity=False, units_out='K')¶ Converts frequency to temperature
- Parameters
freq (float) – Frequency
units_in (str, optional) – Units corresponding to
freq
. Default is ‘Hz’.return_quantity (bool, optional) – If True, returns
Quantity
. Otherwise, returns float.units_out (str, optional) – Units corresponding to
temp
. Default is ‘K’.
- Returns
temp – Temperature corresponding to
units_out
.- Return type
float or
Quantity
obj