DataSerie Constructor
DataSerie Constructor
Serie[T] > Name of the variable
List[Long] > list of dates range of variable data
list of variable values
DataSerie
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)
date format
aggregation function
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)
string holding the period : "week", "month". "year"
aggregation function
Appends a new value at the end of the DataSerie
Appends a new value at the end of the DataSerie
T > the new value to append
List[T]
Returns a specific data from the DataSerie at given index
Returns a specific data from the DataSerie at given index
the given index
T
Returns a part of the DataSerie of given indices
Returns a part of the DataSerie of given indices
List[Int] > given indices
List[T] >
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
Unit
clones the DataSerie
Returns a string whit a report on out of range values an gaps (for logs)
Returns the date (in millisec) of a specific data index
Returns the date (in millisec) of a specific data index
the given index
the date in millisec
Gets the list of dates of the DataSerie
Gets the list of dates of the DataSerie
List[Long] > list of dates (millisec)
Gets the index at given date
Gets the index at given date
date in millisec
the index
Inserts a new value at the beginning of the DataSerie
Inserts a new value at the beginning of the DataSerie
T > the new value to insert
List[T]
Returns the last data from the DataSerie
Returns the last data from the DataSerie
number of data to be returned
List[T]
Returns a new DataSerie with only the indicated last values
Returns a new DataSerie with only the indicated last values
number of data to be returned
List[T]
number of values in the DataSerie
number of values in the DataSerie
Int
Returns the means of values according to temporal aggregates
Returns the means of values according to temporal aggregates
date format
Returns if the last value of the serie is missing
Returns if the last value of the serie is missing
Boolean
Returns the before-last data from the DataSerie
Returns the before-last data from the DataSerie
T
Prints the basic information of the DataSerie
Prints the basic information of the DataSerie
String
Reads and inserts a value of a specific field in the DataSerie
Reads and inserts a value of a specific field in the DataSerie
ResultSet > the ResultSet containing all fields and value
the header of the fiel to read
List[T]
Reads and inserts a value of a specific field in the DataSerie
Reads and inserts a value of a specific field in the DataSerie
ResultSet > the ResultSet containing all fields and value
the header of the fiel to read
List[T]
Slices a portion of the DataSerie
Slices a portion of the DataSerie
date from where to slice
date until where to slice
portion of the DataSerie
Slices a portion of the DataSerie
Slices a portion of the DataSerie
index from where to slice (0-based)
index until where to slice (not included)
portion of the DataSerie
Slices a DataSerie on a given Date
Slices a DataSerie on a given Date
format of the date
the given date from where to slice
List[T]
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).
input list
output list
Updates the last value in the data with the given one
Updates the last value in the data with the given one
Boolean
Updates the last value in the data and notes from another DatsaSerie
Updates the last value in the data and notes from another DatsaSerie
Boolean
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).