Class TimeSeriesUtils

java.lang.Object
edu.ie3.datamodel.utils.TimeSeriesUtils

public class TimeSeriesUtils extends Object
  • 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 trim
      timeInterval - the interval to trim the data to
      Returns:
      Trimmed time series
    • getAcceptedColumnSchemes

      public static Set<ColumnScheme> getAcceptedColumnSchemes()
      Returns set of column schemes that are accepted with TimeSeriesSource
      Returns:
      set of accepted column schemes
    • isSchemeAccepted

      public static boolean isSchemeAccepted(ColumnScheme scheme)
      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