ch.wsl.fireindices.functions

Utils

object Utils

Contains conversion functions (for units and dates) and other utilities.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Utils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def C2F(celValue: Double): Double

    Converts Celsius to Fahrenheit

    Converts Celsius to Fahrenheit

    returns

    fahrenheit value

  7. def F2C(farValue: Double): Double

    Converts Fahrenheit to Celsius

    Converts Fahrenheit to Celsius

    returns

    celsius value

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def deg2rad(decdegValue: Double): Double

    Converts decimal degrees to radians

    Converts decimal degrees to radians

    returns

    radians value

  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def inch2mm(inchValue: Double): Double

    Converts inches to mm

    Converts inches to mm

    returns

    mm value

  17. def intervalIndex(thresholds: Seq[Double], value: Double): Long

    find the interval index in which the data falls (returns an index form 1 to length(thresholds)+1

    find the interval index in which the data falls (returns an index form 1 to length(thresholds)+1

    thresholds

    Seq of thresholds

    value

    value to situate

    returns

    index from 1 to length(thresholds)+1

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def kPa2mmH2O(kPaValue: Double): Double

    Converts kPa to mmH2O

    Converts kPa to mmH2O

    returns

    mm of water alue

  20. def kPa2mmHg(kPaValue: Double): Double

    Converts kPa to mmH2O

    Converts kPa to mmH2O

    returns

    mm of mercury value

  21. def kmh2mph(kmhValue: Double): Double

    Converts KMH to MPH

    Converts KMH to MPH

    returns

    MPH value

  22. def mm2inch(mmValue: Double): Double

    Converts mm to inches

    Converts mm to inches

    returns

    inches value

  23. def mph2kmh(mphValue: Double): Double

    Converts MPH to KMH

    Converts MPH to KMH

    returns

    KMH value

  24. val msecInOneYear: Long

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def rad2deg(radValue: Double): Double

    Converts radians to decimal degrees

    Converts radians to decimal degrees

    returns

    decimal degrees value

  29. def solarDate2Julian(date: Long): Int

    Functions return number of days since beginning of the year

    Functions return number of days since beginning of the year

    date

    date

    returns

    number of days since beginning of the year

  30. def solarDate2Long(date: Date): Long

    Converts a date to a date-long(millisec) excluding legal time changes

    Converts a date to a date-long(millisec) excluding legal time changes

    date

    date

    returns

    date in millisec

  31. def solarDate2Long(date: String, format: String = "yyyyMMdd"): Long

    Converts a date-string to a date-long(millisec) excluding legal time changes

    Converts a date-string to a date-long(millisec) excluding legal time changes

    date

    date String of format "format"

    format

    format of the date-string

    returns

    date in millisec

  32. def solarDate2String(date: Long, format: String = "yyyyMMdd"): String

    Converts a date-long(millisec) to a date-string excluding legal time changes

    Converts a date-long(millisec) to a date-string excluding legal time changes

    date

    date in millisec

    format

    format of the date-string

    returns

    date String of format "format"

  33. def solarJDate2String(date: Date, format: String = "yyyyMMdd"): String

    Converts a date to a date-string excluding legal time changes

    Converts a date to a date-string excluding legal time changes

    date

    date

    format

    format of the date-string

    returns

    date String of format "format"

  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toHead(x: Any): Any

    if input is a list returns the head of this list

    if input is a list returns the head of this list

    x

    Any object

    returns

    if input object is a list returns the head, else returns the object

  36. def toString(): String

    Definition Classes
    AnyRef → Any
  37. def toTail(x: Any): Any

    if input is a list returns the tail of this list

    if input is a list returns the tail of this list

    x

    Any object

    returns

    if input object is a list returns the tail, else returns the object

  38. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped