Class

be.cetic.rtsgen.timeseries.composite

SlidingWindowTimeSeries

Related Doc: package composite

Permalink

case class SlidingWindowTimeSeries[T](base: TimeSeries[T], duration: Duration, aggregator: (Seq[(Duration, T)]) ⇒ T) extends TimeSeries[T] with Product with Serializable

A time series that aggregates recent values of an other time series. A typical use case is a mobile average time series.

If no values are available for a given time window, a None value is retrieved.

The number of periods in the sliding windows will only rely on the call frequency of this time series, for the underlying time series will only provide values for the times specified by this time series.

base

the underlying time series on which this time series is based.

duration

the time in the past this time series must consider for computing the sliding window. Values that relate to times before this will be ignored.

aggregator

the function used to aggregate values.

Linear Supertypes
Serializable, Serializable, Product, Equals, TimeSeries[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SlidingWindowTimeSeries
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. TimeSeries
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SlidingWindowTimeSeries(base: TimeSeries[T], duration: Duration, aggregator: (Seq[(Duration, T)]) ⇒ T)

    Permalink

    base

    the underlying time series on which this time series is based.

    duration

    the time in the past this time series must consider for computing the sliding window. Values that relate to times before this will be ignored.

    aggregator

    the function used to aggregate values.

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val aggregator: (Seq[(Duration, T)]) ⇒ T

    Permalink

    the function used to aggregate values.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val base: TimeSeries[T]

    Permalink

    the underlying time series on which this time series is based.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def compute(times: Stream[LocalDateTime]): Stream[(LocalDateTime, Option[T])]

    Permalink

    times

    a series of time for which values must be computed. Each time must be greater than or equal to the previous one.

    returns

    the values associated to the specified times, if specified.

    Definition Classes
    SlidingWindowTimeSeriesTimeSeries
  9. val duration: Duration

    Permalink

    the time in the past this time series must consider for computing the sliding window.

    the time in the past this time series must consider for computing the sliding window. Values that relate to times before this will be ignored.

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

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TimeSeries[T]

Inherited from AnyRef

Inherited from Any

Ungrouped