Notation initial = persist_g.initial n = size(xk1, 1)
Purpose
Implements the persistence model for state transitions; i.e.,
the mean of the state at time index
k
given the state at time
index
k-1
is its value at time index
k-1
.
(This corresponds to a random walk model.)
initial
is a column vector of length
n
specifying the initial estimate
for the state vector at time index one.
k
is a positive integer scalar specifies the current time index.
xk1
is a column vector specifying a value for
the state vector at the previous time index
k-1
.
gk
If
k == 1
,
the return value
gk
is equal to
initial
.
Otherwise,
gk
is equal to
xk1
.
Gk
The return value
Gk
is an
n x n
matrix equal to the
Jacobian of
gk
w.r.t
xk1
; i.e., the identity matrix.