ch.wsl.fireindices.metadata

DataSerie

class DataSerie extends Data

Implementation of a class holding data series (time series), with a definition (variable). Time is defined by the start date (in millisec.) and the interval (timestep also in millisec.). It ahs several methods to get the date serie, slice the data and to check the data for missing values or outliers (according to the variable definition).

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

Instance Constructors

  1. new DataSerie(name: Serie, dates: List[Long], values: List[Double])

    DataSerie Constructor

    DataSerie Constructor

    name

    Serie[T] > Name of the variable

    dates

    List[Long] > list of dates range of variable data

    values

    list of variable values

    returns

    DataSerie

  2. new DataSerie(variable: Serie, start: Long, interval: Long, values: List[Double], notes: String = "")

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. val NotAvailableInput: String

  7. def aggregate(dateFormat: String, f: (List[Double]) ⇒ Double): List[Double]

    Returns aggregations of values according to temporal aggregates and a given function (e.

    Returns aggregations of values according to temporal aggregates and a given function (e.g. max, min, sum)

    dateFormat

    date format

    f

    aggregation function

    returns

  8. def aggregateDs(period: String, f: (List[Double]) ⇒ Double): DataSerie

    Returns a new data serie with time aggregation according to a given function (e.

    Returns a new data serie with time aggregation according to a given function (e.g. max, min, sum). disclaimer: this is not working, has to be adjusted for periods of different lengths (e.g. monts)

    period

    string holding the period : "week", "month". "year"

    f

    aggregation function

    returns

  9. def appendOneRow(v: Double): Unit

    Appends a new value at the end of the DataSerie

    Appends a new value at the end of the DataSerie

    v

    T > the new value to append

    returns

    List[T]

  10. def apply(index: Int): Double

    Returns a specific data from the DataSerie at given index

    Returns a specific data from the DataSerie at given index

    index

    the given index

    returns

    T

  11. def apply(indices: List[Int]): List[Double]

    Returns a part of the DataSerie of given indices

    Returns a part of the DataSerie of given indices

    indices

    List[Int] > given indices

    returns

    List[T] >

  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. def checkValues: Unit

    Checks all values of the Dataserie (if are in the range of variable min&max and if there are gaps) updating outOfRangeMap and gapMap

    Checks all values of the Dataserie (if are in the range of variable min&max and if there are gaps) updating outOfRangeMap and gapMap

    returns

    Unit

  14. def clone(): DataSerie

    clones the DataSerie

    clones the DataSerie

    returns

    DataSerie

    Definition Classes
    DataSerie → AnyRef
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. var gapMap: LinkedHashMap[String, Long]

  19. def getCheckReport: String

    Returns a string whit a report on out of range values an gaps (for logs)

    Returns a string whit a report on out of range values an gaps (for logs)

    returns

    String

    Definition Classes
    DataSerieData
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def getDate(index: Int): Long

    Returns the date (in millisec) of a specific data index

    Returns the date (in millisec) of a specific data index

    index

    the given index

    returns

    the date in millisec

  22. def getDates: List[Long]

    Gets the list of dates of the DataSerie

    Gets the list of dates of the DataSerie

    returns

    List[Long] > list of dates (millisec)

  23. def getIndex(date: Long): Int

    Gets the index at given date

    Gets the index at given date

    date

    date in millisec

    returns

    the index

  24. def getStringDataSerie: StringDataSerie

  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def insertOneRow(v: Double): Unit

    Inserts a new value at the beginning of the DataSerie

    Inserts a new value at the beginning of the DataSerie

    v

    T > the new value to insert

    returns

    List[T]

  27. var interval: Long

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def last(nr: Int = 1): List[Double]

    Returns the last data from the DataSerie

    Returns the last data from the DataSerie

    nr

    number of data to be returned

    returns

    List[T]

  30. def lastDs(nr: Int = 1): DataSerie

    Returns a new DataSerie with only the indicated last values

    Returns a new DataSerie with only the indicated last values

    nr

    number of data to be returned

    returns

    List[T]

  31. def length: Int

    number of values in the DataSerie

    number of values in the DataSerie

    returns

    Int

  32. def mean(dateFormat: String): List[Double]

    Returns the means of values according to temporal aggregates

    Returns the means of values according to temporal aggregates

    dateFormat

    date format

    returns

  33. def missingLastValue: Boolean

    Returns if the last value of the serie is missing

    Returns if the last value of the serie is missing

    returns

    Boolean

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

    Definition Classes
    AnyRef
  35. val notes: String

    Definition Classes
    DataSerieData
  36. final def notify(): Unit

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

    Definition Classes
    AnyRef
  38. var outOfRangeMap: LinkedHashMap[String, Double]

  39. def prev: Double

    Returns the before-last data from the DataSerie

    Returns the before-last data from the DataSerie

    returns

    T

  40. def printMe: String

    Prints the basic information of the DataSerie

    Prints the basic information of the DataSerie

    returns

    String

  41. def readField(results: ResultSet, field: String): Unit

    Reads and inserts a value of a specific field in the DataSerie

    Reads and inserts a value of a specific field in the DataSerie

    results

    ResultSet > the ResultSet containing all fields and value

    field

    the header of the fiel to read

    returns

    List[T]

  42. def readField2(results: ResultSet, field: String): Unit

    Reads and inserts a value of a specific field in the DataSerie

    Reads and inserts a value of a specific field in the DataSerie

    results

    ResultSet > the ResultSet containing all fields and value

    field

    the header of the fiel to read

    returns

    List[T]

  43. def slice(dateStart: Long, dateEnd: Long): List[Double]

    Slices a portion of the DataSerie

    Slices a portion of the DataSerie

    dateStart

    date from where to slice

    dateEnd

    date until where to slice

    returns

    portion of the DataSerie

  44. def slice(from: Int, until: Int): List[Double]

    Slices a portion of the DataSerie

    Slices a portion of the DataSerie

    from

    index from where to slice (0-based)

    until

    index until where to slice (not included)

    returns

    portion of the DataSerie

  45. def sliceData(dateFormat: String, condition: String): List[Double]

    Slices a DataSerie on a given Date

    Slices a DataSerie on a given Date

    dateFormat

    format of the date

    condition

    the given date from where to slice

    returns

    List[T]

  46. var start: Long

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

    Definition Classes
    AnyRef
  48. def toString(): String

    Definition Classes
    AnyRef → Any
  49. def uniques[A](in: List[A]): List[A]

    Returns a list as consecutive unique values (identical consecutive values are reduced to 1 value).

    Returns a list as consecutive unique values (identical consecutive values are reduced to 1 value).

    in

    input list

    returns

    output list

  50. def updateLast(last: Double): DataSerie

    Updates the last value in the data with the given one

    Updates the last value in the data with the given one

    returns

    Boolean

  51. def updateLastAndNotes(ds: DataSerie): DataSerie

    Updates the last value in the data and notes from another DatsaSerie

    Updates the last value in the data and notes from another DatsaSerie

    returns

    Boolean

  52. var values: List[Double]

  53. val variable: Serie

    Definition Classes
    DataSerieData
  54. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Data

Inherited from AnyRef

Inherited from Any

Ungrouped