Dew Stats Master .NET
ARMASimulate Routine
Summary
Simulate the ARMA process.

Unit
StatTimeSerAnalysis

Declaration
Procedure ARMASimulate(p, t: TVec; n: integer; Result: TVec);
 Parameter  Description 
stores the AR coefficients. Length of the p vector defines AR(p) order. 
stores the MA coefficients. Length of the t vector defines MA(q) order. 
defines number of points to simulate. 
Result returns ARMA (p,q) time series. Size of Result vector is adjusted automatiacally. 

Description
Simulate the ARMA (p,q) process.
Categories
ARMA and ARIMA routines
 See Also 
ARIMASimulate 

Example 1

Simulate ARMA(1,1) process with Phi=[1.0], Theta=[-0.25].
Uses MtxExpr, StatTimeSerAnalysis; procedure Example; var phi,theta,ts: Vector; begin phi.SetIt(false,[1.0]); theta.SetIt(false,[-0.25]); ARMASimulate(phi,theta,100,ts); // ts now stores 100 points from ARMA(1,1) process. end;
#include "MtxVecCpp.h" #include "Math387.hpp" #include "StatTimeSerAnalysis.hpp" void __fastcall Example(); { Vector phi,theta,ts; phi->SetIt(false,OPENARRAY(TSample,(1.0))); theta->SetIt(false,OPENARRAY(TSample,(-0.25))); ARMASimulate(phi,theta,100,ts); // ts now stores 100 points from ARMA(1,1) process.
using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples { private void Example() { Vector phi = new Vector(0); Vector theta = new Vector(0); Vector ts = new Vector(0); phi.SetIt(false, new double[] {1.0}); theta.SetIt(false,new double[] {-0.25}); StatTimeSerAnalysis.ARMASimulate(phi,theta,100,ts); // ts now stores 100 points from ARMA(1,1) process. } }

Copyright 2008 Dew Research
http://www.dewresearch.com