Package empro :: Module empro :: Module units :: Class Unit
[frames] | no frames]

Class Unit

Interface to unit objects.

Class Hierarchy for Unit
Class Hierarchy for Unit

Instance Methods
string
abbreviation()
Returns the abbreviation of the unit.
list{string}
allAbbreviations()
Returns all known abbreviations of the unit.
float
conversionMultiplier()
Retrieve the unit conversion multiplier.
float
conversionOffset()
Retrieve the unit conversion offset.
float
fromReferenceUnits(iValue)
Convert a value in reference units to a value in units as defined by this object.
string
logScale()
Returns the type of logarithmic scaling used.
string
name()
Returns the name of the unit.
float
toReferenceUnits(iValue)
Convert a value in units as defined by this object to a value in reference units.
 
unitClass(...)
No documentation available.
Method Details

fromReferenceUnits(iValue)

 

Convert a value in reference units to a value in units as defined by this object.

Parameters:
  • iValue (float) - The value to convert.
Returns: float

logScale()

 

Returns the type of logarithmic scaling used. {Amplitude_dB,No_Log_Scale,Power_dB,Unknown_Log_Scale}

Returns: string

toReferenceUnits(iValue)

 

Convert a value in units as defined by this object to a value in reference units.

Parameters:
  • iValue (float) - The value to convert.
Returns: float