Library

Library

Linear systems

LinearObservation(P, H, R)

Observe the LinearEvolution P using y = Hx + v where $v \sim N(0, R)$.

Examples

    O = LinearObservation(LinearEvolution(Φ, Gaussian(b, Q)), H, R)
source
LinearEvolution(Φ, b, Q) <: Evolution

Evolution of the law of x -> Φ x + w where $w \sim N(0, Q)$.

Examples

    evolve(LinearEvolution(Φ, b, Q), 0 => Gaussian(x, P))
source
LinearStateSpaceModel <: StateSpaceModel

LinearStateSpaceModel(sys, obs)

Combines a linear system sys and an observations model obs and to a linear statespace model in a modular way.

Evolves StateObs objects.

source

Filtering

Kalman.kalmanfilterFunction.
kalmanfilter(M, t => x0) -> kf

kf(iter) is an iterator over Gaussians or Distributions representing the filtered distribution of x where y iterates over (enumerated) signal values.

Example

kf = kalmanfilter(M, 0 => prior) #
est1 = collect(kf(Y1))
est2 = collect(kf(Y2))
source
Kalman.FilteredType.
filter(Y, P)

"Filter" data Y with iterator P calling (handling of nothings omitted)

(t, y), state = iterate(Y, state)
(s => x) = dyniterate(P, s => x, (observation = t => y,))
source

Smoothing

Iterators

DynamicIterators.dyniterate