class UnitConverter extends AnyRef
Utility class that converts values and distributions to a desired unit. This class provides a convenient way to keep fixed preferences regarding what time and information units to expect on the output and apply those conversion when possible.
- Alphabetic
- By Inheritance
- UnitConverter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new UnitConverter(targetTimeUnit: MeasurementUnit, targetInformationUnit: MeasurementUnit, dynamicRange: DynamicRange)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def convertDistribution(distribution: Distribution, unit: MeasurementUnit): Distribution
Tries to convert a Distribution from its unit and dynamic range to the appropriate time/information unit set when creating this UnitConverter.
Tries to convert a Distribution from its unit and dynamic range to the appropriate time/information unit set when creating this UnitConverter. If the Distribution unit's dimension is not time or information then values will only be converted to a different dynamic range, if necessary.
- def convertValue(value: Double, unit: MeasurementUnit): Double
Tries to convert a value from its unit to the appropriate time/information unit set when creating this UnitConverter.
Tries to convert a value from its unit to the appropriate time/information unit set when creating this UnitConverter. If the value unit's dimension is not time or information then values will be returned unchanged.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()