Object

com.github.jonnylaw.model

SimData

Related Doc: package model

Permalink

object SimData

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimData
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class ForecastOut(t: Time, obs: Observation, obsIntervals: CredibleInterval, eta: Double, etaIntervals: CredibleInterval, state: State, stateIntervals: IndexedSeq[CredibleInterval]) extends Product with Serializable

    Permalink

    Forecast data

    Forecast data

    t

    the time of the observation

    obs

    an observation of the process

    obsIntervals

    the upper and lower credible intervals of the observation

    eta

    the transformed latent state

    etaIntervals

    the credible intervals of the transformed latent state

    state

    the untransformed latent state

    stateIntervals

    the intervals of the latent state

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. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def forecastFlow(x0: Vector[State], t0: Time, mod: Model): Flow[Time, ForecastOut, Any]

    Permalink

    Given a stream of times, a model an initial sample of states and the associated time of the state sample generate a forecast include credible intervals in a stream

    Given a stream of times, a model an initial sample of states and the associated time of the state sample generate a forecast include credible intervals in a stream

    x0

    a vector of state realisations at time t0

    t0

    an initial time which the state was realised at

    mod

    the model to simulate from

    returns

    a flow object which can be attached to a Source[Time] and a suitable Sink

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def oneStepForecast(x0: Vector[State], t0: Time, t: Time, mod: Model): (ForecastOut, Vector[State])

    Permalink

    Performs a one step ahead forecast for any time ahead in the future, given a sample of states, time of the state sample the time to forecast to and a model

    Performs a one step ahead forecast for any time ahead in the future, given a sample of states, time of the state sample the time to forecast to and a model

    x0

    a sample of states at the same time point, t0

    t0

    the time the sample of states was made

    t

    the time to forcast ahead until

    mod

    the model to simulate from

    returns

    a tuple, including a ForecastOut object and the vector of states which has been advanced by dt = t - t0

  17. def simData(times: Seq[Time], mod: Model): Seq[Data]

    Permalink

    Simulate data from a list of times, allowing for irregular observations

    Simulate data from a list of times, allowing for irregular observations

    times

    a list of times to simulate observations at

    mod

    an exponential family model

    returns

    a sequence of Data

  18. def simDataInit(x0: State, times: Seq[Time], mod: Model): Seq[Data]

    Permalink

    Given an initial state, simulate from a model

    Given an initial state, simulate from a model

    x0

    the initial state

    times

    a list of times to simulate the data

    mod

    an exponential family model

    returns

    a sequence of Data

  19. def simDataRand(times: Seq[Time], mod: Model): Rand[Seq[Data]]

    Permalink

    Simulate a vector of Data using Rand (a monad representing a distribution which can be sampled from)

    Simulate a vector of Data using Rand (a monad representing a distribution which can be sampled from)

    times

    a list of times to observe the process at

    mod

    an exponential family model

    returns

    a Rand monad containing a vector of data

  20. def simLGCP(start: Time, end: Time, mod: Model, precision: Int): Vector[Data]

    Permalink

    Simulate the log-Gaussian Cox-Process using thinning

    Simulate the log-Gaussian Cox-Process using thinning

    start

    the starting time of the process

    mod

    the model to simulate from. In a composition, the LogGaussianCox must be the left-hand model

    precision

    an integer specifying the timestep between simulating the latent state, 10e-precision

    returns

    a vector of Data specifying when events happened

  21. def simLGCPEvents(start: Time, end: Time, mod: Model, precision: Int): Vector[Data]

    Permalink

    Generates a vector of event times from the Log-Gaussian Cox-Process by thinning an exponential process, returns the value of the state space at the event times only

    Generates a vector of event times from the Log-Gaussian Cox-Process by thinning an exponential process, returns the value of the state space at the event times only

    start

    the start time of the process

    end

    the end time of the process

    mod

    the model used to generate the events. In a composition, LogGaussiancox must be the left-hand model

    precision

    the size of the discretized grid to simulate the latent state on, 10e-precision

    returns

    a vector of Data at representing only the times which events happened

  22. def simSdeIrregular(x0: State, times: List[Time], stepFun: (State, TimeIncrement) ⇒ Rand[State]): Vector[Sde]

    Permalink

    Simulates a diffusion process at any specified times

    Simulates a diffusion process at any specified times

    x0

    the initial state

    times

    a list of times at which to simulate the diffusion process

    stepFun

    the transition kernel of a diffusion process which can be simulated from

    returns

    a vector of Sde with values and times

  23. def simSdeStream(x0: State, t0: Time, totalIncrement: TimeIncrement, precision: Int, stepFun: (State, TimeIncrement) ⇒ Rand[State]): Stream[Sde]

    Permalink

    Simulate a diffusion process as a stream

    Simulate a diffusion process as a stream

    x0

    the starting value of the stream

    t0

    the starting time of the stream

    totalIncrement

    the ending time of the stream

    precision

    the step size of the stream 10e(-precision)

    stepFun

    the stepping function to use to generate the SDE Stream

    returns

    a lazily evaluated stream of Sde

  24. def simStep(x0: State, t0: Time, deltat: TimeIncrement, mod: Model): Data

    Permalink

    Simulate a single step of an exponential family model

    Simulate a single step of an exponential family model

    x0

    the initial state at the time of the last observation

    t0

    the time of the last observation

    deltat

    the time increment to the next observation

    mod

    a composed model, not the LogGaussiancox model

    returns

    a Data element with the next latent state and observation

  25. def simStepRand(x0: State, t: Time, deltat: TimeIncrement, mod: Model): Rand[Data]

    Permalink

    Simulate a step using Rand (a monad representing a distribution which can be sampled from)

    Simulate a step using Rand (a monad representing a distribution which can be sampled from)

    x0

    the initial state at the time of the previous observation

    t

    the time of the previous observation

    deltat

    the time increment to the time of the next observation

    mod

    an exponential family model to simulate from

    returns

    a Rand monad containing data, which can be sampled from to give a realisation from a model

  26. def simStream(mod: Model, precision: Int, t0: Time): Source[Data, Any]

    Permalink

    Simulate data as an Akka Stream, with regular time intervals

    Simulate data as an Akka Stream, with regular time intervals

    mod

    The model to simulate from, can be composed or single

    precision

    Used to determine the step length, dt = 10^-precision

    t0

    the starting time of the process

    returns

    a source of an Akka Stream

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

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped