Package edu.ie3.datamodel.utils
Class TimeSeriesUtils
java.lang.Object
edu.ie3.datamodel.utils.TimeSeriesUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<ColumnScheme>
Returns set of column schemes that are accepted withTimeSeriesSource
static boolean
isSchemeAccepted
(ColumnScheme scheme) Checks whether the given column scheme can be used with time series.static <V extends Value>
IndividualTimeSeries<V>trimTimeSeriesToInterval
(IndividualTimeSeries<V> timeSeries, edu.ie3.util.interval.ClosedInterval<ZonedDateTime> timeInterval) Trims a time series to the given time interval
-
Method Details
-
trimTimeSeriesToInterval
public static <V extends Value> IndividualTimeSeries<V> trimTimeSeriesToInterval(IndividualTimeSeries<V> timeSeries, edu.ie3.util.interval.ClosedInterval<ZonedDateTime> timeInterval) Trims a time series to the given time interval- Type Parameters:
V
- Type of value carried wit the time series- Parameters:
timeSeries
- the time series to trimtimeInterval
- the interval to trim the data to- Returns:
- Trimmed time series
-
getAcceptedColumnSchemes
Returns set of column schemes that are accepted withTimeSeriesSource
- Returns:
- set of accepted column schemes
-
isSchemeAccepted
Checks whether the given column scheme can be used with time series.- Parameters:
scheme
- the column scheme to check- Returns:
- whether the scheme is accepted or not
-