Class

be.cetic.rtsgen.timeseries.composite

CorrelatedTimeSeries

Related Doc: package composite

Permalink

case class CorrelatedTimeSeries(base: TimeSeries[Double], seed: Int, rho: Double) extends TimeSeries[Double] with Product with Serializable

This time series is built as a correlation of an other time series.

See http://www.sitmo.com/article/generating-correlated-random-numbers/ for explainations.

base

the time series generator on which this generator is based.

seed

the value used as seed for the random number generator. For a fixed seed and a fixed time series, the correlated values are deterministically generated.

rho

the correlation coefficient determining the *strongness* of the correlation. Must be in [0, 1]

Linear Supertypes
Serializable, Serializable, Product, Equals, TimeSeries[Double], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CorrelatedTimeSeries
  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 CorrelatedTimeSeries(base: TimeSeries[Double], seed: Int, rho: Double)

    Permalink

    base

    the time series generator on which this generator is based.

    seed

    the value used as seed for the random number generator. For a fixed seed and a fixed time series, the correlated values are deterministically generated.

    rho

    the correlation coefficient determining the *strongness* of the correlation. Must be in [0, 1]

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val base: TimeSeries[Double]

    Permalink

    the time series generator on which this generator is based.

  6. def clone(): AnyRef

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

    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
    CorrelatedTimeSeriesTimeSeries
  8. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. val rho: Double

    Permalink

    the correlation coefficient determining the *strongness* of the correlation.

    the correlation coefficient determining the *strongness* of the correlation. Must be in [0, 1]

  16. val rho_square: Double

    Permalink
  17. val seed: Int

    Permalink

    the value used as seed for the random number generator.

    the value used as seed for the random number generator. For a fixed seed and a fixed time series, the correlated values are deterministically generated.

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. 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[Double]

Inherited from AnyRef

Inherited from Any

Ungrouped