Class VARIMASim
java.lang.Object
dev.nm.stat.timeseries.linear.multivariate.arima.VARIMASim
- All Implemented Interfaces:
RandomVectorGenerator
,Seedable
This class simulates a multivariate ARIMA process.
-
Constructor Summary
ConstructorsConstructorDescriptionVARIMASim
(VARIMAModel arima) Construct a multivariate ARIMA model, using random standard Gaussian innovations.VARIMASim
(VARIMAModel arima, Vector[] lags, Vector[] innovations, RandomVectorGenerator rvg) Construct a multivariate ARIMA model.VARIMASim
(VARIMAModel arima, RandomVectorGenerator rvg) Construct a multivariate ARIMA model. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Gets the next random vector.void
seed
(long... seeds) Seed the random number/vector/scenario generator to produce repeatable experiments.
-
Constructor Details
-
VARIMASim
Construct a multivariate ARIMA model.- Parameters:
arima
- a multivariate ARIMA modellags
- the lags of AR length;lags[0]
is \(x_{t-1}\)innovations
- the innovations of MA length;innovations[0]
is \(e_{t-1}\)rvg
- a random vector generator to generate innovations
-
VARIMASim
Construct a multivariate ARIMA model. The lags and innovations are initialized to 0.- Parameters:
arima
- a multivariate ARIMA modelrvg
- a random vector generator to generate innovations
-
VARIMASim
Construct a multivariate ARIMA model, using random standard Gaussian innovations.- Parameters:
arima
- an ARIMA model
-
-
Method Details
-
seed
public void seed(long... seeds) Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments. -
nextVector
public double[] nextVector()Description copied from interface:RandomVectorGenerator
Gets the next random vector.- Specified by:
nextVector
in interfaceRandomVectorGenerator
- Returns:
- the next random vector
-