|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.dlm.StateEquation
public class StateEquation
The state equation in a controlled dynamic linear model.
x_t = G_t * x_{t - 1} + H_t * u_t + w_t (State Equation),
| Constructor Summary | |
|---|---|
StateEquation(Matrix G,
Matrix W)
Construct a time-invariant state equation without control variables. |
|
StateEquation(Matrix G,
Matrix H,
Matrix W)
Construct a time-invariant state equation. |
|
StateEquation(R1toMatrix G,
R1toMatrix W)
Construct a state equation without control variables. |
|
StateEquation(R1toMatrix G,
R1toMatrix H,
R1toMatrix W)
Construct a state equation. |
|
StateEquation(StateEquation that)
Copy constructor. |
|
| Method Summary | |
|---|---|
int |
dimension()
Get the dimension of each state x_t. |
Matrix |
G(int t)
Get G(t), the coefficient matrix of x_{t - 1}. |
Matrix |
H(int t)
Get H(t), the covariance matrix of u_t. |
Matrix |
W(int t)
Get W(t), the covariance matrix of w_t. |
Vector |
xt_mean(int t,
Vector xt_1)
Predict for the next state without control variable. |
Vector |
xt_mean(int t,
Vector xt_1,
Vector ut)
Predict for the next state. |
Matrix |
xt_var(int t,
Matrix var_tlag_tlag)
Variance of the (a prior) prediction for the next state. |
Vector |
xt(int t,
Vector xt_1)
Compute the state equation without the control variable. |
Vector |
xt(int t,
Vector xt_1,
Vector ut)
Compute the state equation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateEquation(R1toMatrix G,
R1toMatrix H,
R1toMatrix W)
G - the coefficient matrix function of x_{t - 1}H - the coefficient matrix function of control variables {u_t}; may be nullW - the covariance matrix function of {w_t}
public StateEquation(R1toMatrix G,
R1toMatrix W)
G - the coefficient matrix function of x_{t - 1}W - the covariance matrix function of {w_t}
public StateEquation(Matrix G,
Matrix H,
Matrix W)
G - the coefficient matrix function of x_{t - 1}H - the coefficient matrix function of control variables {u_t}; may be nullW - the covariance matrix function of {w_t}
public StateEquation(Matrix G,
Matrix W)
G - the coefficient matrix function of x_{t - 1}W - the covariance matrix function of {w_t}public StateEquation(StateEquation that)
that - another StateEquation| Method Detail |
|---|
public int dimension()
public Matrix G(int t)
t - time
public Matrix H(int t)
t - time
public Matrix W(int t)
t - time
public Vector xt_mean(int t,
Vector xt_1,
Vector ut)
E(x_t) = G_t * x_{t - 1} + H_t * u_t
t - timext_1 - x lag x_{t - 1}ut - control variable u_t
x_t
public Vector xt_mean(int t,
Vector xt_1)
E(x_t) = G_t * x_{t - 1} + H_t * u_t
t - timext_1 - x lag x_{t - 1}
x_t
public Matrix xt_var(int t,
Matrix var_tlag_tlag)
Var(x_{t | t - 1}) = G_t * Var(x_{t - 1| t - 1}) * G_t' + W_t
t - timevar_tlag_tlag - Var(x_{t - 1 | t - 1}), the variance of the posterior update
Var(x_{t | t - 1})
public Vector xt(int t,
Vector xt_1,
Vector ut)
x_t = G_t * x_{t - 1} + H_t * u_t + w_t
t - timext_1 - x lag x_{t - 1}ut - control variable u_t
x_t
public Vector xt(int t,
Vector xt_1)
x_t = G_t * x_{t - 1} + H_t * u_t + w_t
t - timext_1 - x lag x_{t - 1}
x_t
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||