Object

dlm.model

KalmanFilter

Related Doc: package model

Permalink

object KalmanFilter

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

Type Members

  1. case class State(time: Double, mt: DenseVector[Double], ct: DenseMatrix[Double], at: DenseVector[Double], rt: DenseMatrix[Double], y: Option[DenseVector[Double]], cov: Option[DenseMatrix[Double]], ll: Double) extends Product with Serializable

    Permalink

    State for the Kalman Filter

    State for the Kalman Filter

    time

    the current timestep

    mt

    the posterior mean of the latent state

    ct

    the posterior covariance of the latent state

    at

    the prior mean of the latent state

    rt

    the prior covariance of the latent state

    y

    the one step predicted observation mean, not present at the first timestep

    cov

    the one step predicted observation covariance, not present at the first timestep

    ll

    the current log-likelihood of all the observations up until the current time

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. def advanceState(g: (Double) ⇒ DenseMatrix[Double], mt: DenseVector[Double], ct: DenseMatrix[Double], dt: Double, w: DenseMatrix[Double]): (DenseVector[Double], DenseMatrix[Double])

    Permalink

    Advance the state mean and variance to the a-priori value of the state at time t

    Advance the state mean and variance to the a-priori value of the state at time t

    g

    the system matrix, a function from a time increment to DenseMatrix

    mt

    the a-posteriori mean of the state at time t-1

    ct

    the a-posteriori covariance of the state at time t-1

    dt

    the time increment

    w

    the system noise matrix

    returns

    the a-priori mean and covariance of the state at time t

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def conditionalLikelihood(ft: DenseVector[Double], qt: DenseMatrix[Double], y: DenseVector[Double]): Double

    Permalink

    Calculate the conditional likelihood of the

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def filter(mod: Model, observations: Array[Data], p: Parameters): Array[State]

    Permalink

    Run the Kalman Filter over an array of data

  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def flattenObs(y: DenseVector[Option[Double]]): DenseVector[Double]

    Permalink

    Remove optional data from an observation vector

    Remove optional data from an observation vector

    y

    a vector containing optional observations

    returns

    a vector containing only the observations which are there

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def indexNonMissing[A](y: DenseVector[Option[A]]): Array[Int]

    Permalink

    Get the index of the non-missing data

    Get the index of the non-missing data

    y

    a vector of observations possibly containing missing data

    returns

    a vector containing the indices of non-missing observations

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def logLikelihood(mod: Model, observations: Array[Data])(p: Parameters): Double

    Permalink

    Calculate the marginal likelihood of a DLM using a kalman filter

  18. def missingF[A](f: (Double) ⇒ DenseMatrix[Double], time: Double, y: DenseVector[Option[A]]): DenseMatrix[Double]

    Permalink

    Build observation matrix for potentially missing data

  19. def missingV[A](v: DenseMatrix[Double], y: DenseVector[Option[A]]): DenseMatrix[Double]

    Permalink

    Build observation error variance matrix for potentially missing data

  20. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def oneStepMissing(f: (Double) ⇒ DenseMatrix[Double], at: DenseVector[Double], rt: DenseMatrix[Double], time: Double, v: DenseMatrix[Double], y: DenseVector[Option[Double]]): (DenseVector[Double], DenseMatrix[Double])

    Permalink

    Perform a one-step prediction taking into account missing data in the observations, this alters the size of the F-matrix

    Perform a one-step prediction taking into account missing data in the observations, this alters the size of the F-matrix

    f

    the observation matrix

    at

    the a-priori mean state at time t

    rt

    the a-priori covariance of the state at time t

    time

    the current time

    v

    the observation variance

    y

    the observation at time t

  24. def oneStepPrediction(f: (Double) ⇒ DenseMatrix[Double], at: DenseVector[Double], rt: DenseMatrix[Double], time: Double, v: DenseMatrix[Double]): (DenseVector[Double], DenseMatrix[Double])

    Permalink

    Perform a one-step prediction

  25. def step(mod: Model, p: Parameters)(state: State, y: Data): State

    Permalink

    Step the Kalman Filter a single Step

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. def updateState(f: (Double) ⇒ DenseMatrix[Double], at: DenseVector[Double], rt: DenseMatrix[Double], d: Data, v: DenseMatrix[Double], ll: Double): (DenseVector[Double], DenseMatrix[Double], DenseVector[Double], DenseMatrix[Double], Double)

    Permalink

    Update the state using Joseph Form Update given the newly observed data

    Update the state using Joseph Form Update given the newly observed data

    f

    the observation matrix

    at

    the a priori state mean at time t

    rt

    the a priori state variance at time t

    d

    the actual observation at time t

    v

    the variance of the measurement noise

    ll

    the current log-likelihood

    returns

    the posterior mean and variance of the latent state at time t

  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