public class StateEquation extends Object
| Constructor and Description |
|---|
StateEquation(double G,
double W)
Construct a time-invariant state equation without control variables.
|
StateEquation(double G,
double H,
double W,
RandomStandardNormalGenerator rnorm)
Construct a time-invariant state equation.
|
StateEquation(StateEquation that)
Copy constructor.
|
StateEquation(UnivariateRealFunction G,
UnivariateRealFunction W)
Construct a state equation without control variables.
|
StateEquation(UnivariateRealFunction G,
UnivariateRealFunction H,
UnivariateRealFunction W)
Construct a state equation.
|
StateEquation(UnivariateRealFunction G,
UnivariateRealFunction H,
UnivariateRealFunction W,
RandomStandardNormalGenerator rnorm)
Construct a state equation.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimension()
Get the dimension of state \(x_{t}\).
|
double |
G(int t)
Get G(t), the coefficient of \(x_{t - 1}\).
|
double |
H(int t)
Get H(t), the variance of \(u_{t}\).
|
double |
W(int t)
Get W(t), the variance of \(w_{t}\).
|
double |
xt_mean(int t,
double xt_1)
Predict the next state without control variable.
\[
E(x_t) = G_t \cdot x_\{t - 1\} + H_t \cdot u_t
\]
|
double |
xt_mean(int t,
double xt_1,
double ut)
Predict the next state.
\[
E(x_t) = G_t \cdot x_\{t - 1\} + H_t \cdot u_t
\]
|
double |
xt_var(int t,
double var_tlag_tlag)
Get the variance of the apriori prediction for the next state.
\[
\operatorname{Var}(x_\{t | t - 1\}) = G_t \cdot \operatorname{Var}(x_\{t - 1| t - 1\}) \cdot G_t' + W_t
\]
|
double |
xt(int t,
double xt_1)
Evaluate the state equation without the control variable.
\[
x_t = G_t \cdot x_\{t - 1\} + H_t \cdot u_t + w_t
\]
|
double |
xt(int t,
double xt_1,
double ut)
Evaluate the state equation.
\[
x_t = G_t \cdot x_\{t - 1\} + H_t \cdot u_t + w_t
\]
|
public StateEquation(UnivariateRealFunction G, UnivariateRealFunction H, UnivariateRealFunction W, RandomStandardNormalGenerator rnorm)
G - the coefficient function of \(x_{t - 1}\)H - the coefficient function of control variables \(u_{t}\)W - the variance function of \(w_{t}\)rnorm - a standard Gaussian random number generator (for seeding)public StateEquation(UnivariateRealFunction G, UnivariateRealFunction H, UnivariateRealFunction W)
G - the coefficient function of \(x_{t - 1}\)H - the coefficient function of control variables \(u_{t}\)W - the variance function of \(w_{t}\)public StateEquation(UnivariateRealFunction G, UnivariateRealFunction W)
G - the coefficient function of \(x_{t - 1}\)W - the variance function of \(w_{t}\)public StateEquation(double G,
double H,
double W,
RandomStandardNormalGenerator rnorm)
G - the coefficient of \(x_{t - 1}\)H - the coefficient of control variables \(u_{t}\)W - the variance of \(w_{t}\)rnorm - a standard Gaussian random number generatorpublic StateEquation(double G,
double W)
G - the coefficient of \(x_{t - 1}\)W - the variance of \(w_{t}\)public StateEquation(StateEquation that)
that - a StateEquationpublic int dimension()
public double G(int t)
t - timepublic double H(int t)
t - timepublic double W(int t)
t - timepublic double xt_mean(int t,
double xt_1,
double ut)
t - timext_1 - x lag \(x_{t - 1}\)ut - the control variable \(u_{t}\)public double xt_mean(int t,
double xt_1)
t - timext_1 - x lag \(x_{t - 1}\)public double xt_var(int t,
double var_tlag_tlag)
t - timevar_tlag_tlag - Var(x_{t - 1 | t - 1}), the variance of the posterior updatepublic double xt(int t,
double xt_1,
double ut)
t - timext_1 - x lag \(x_{t - 1}\)ut - the control variable \(u_{t}\)public double xt(int t,
double xt_1)
t - timext_1 - x lag \(x_{t - 1}\)Copyright © 2010-2026 NM Group. All Rights Reserved.