diff options
author | Suraj Yerramilli | 2016-02-26 14:08:38 +0530 |
---|---|---|
committer | Suraj Yerramilli | 2016-02-26 14:08:38 +0530 |
commit | 1e140a3650e11aa53b7c90210d1367b7c229f7a6 (patch) | |
tree | 0611c27b68ef3f8481a8bae07032465d7ec64a92 /man | |
parent | 14f465f83252733a71692082ce9ee44d228b14eb (diff) | |
download | SysID-R-code-1e140a3650e11aa53b7c90210d1367b7c229f7a6.tar.gz SysID-R-code-1e140a3650e11aa53b7c90210d1367b7c229f7a6.tar.bz2 SysID-R-code-1e140a3650e11aa53b7c90210d1367b7c229f7a6.zip |
adding the option to use user-specified innovations and updating the documentation
Diffstat (limited to 'man')
-rw-r--r-- | man/sim.Rd | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -4,13 +4,16 @@ \alias{sim} \title{Simulate dynamic system} \usage{ -sim(model, input, sigma = 0, seed = NULL) +sim(model, input, innov = NULL, sigma = 0, seed = NULL) } \arguments{ -\item{model}{the system model to simulate} +\item{model}{the linear system to simulate} \item{input}{a vector/matrix containing the input} +\item{innov}{an optional times series of innovations. If not provided, +innovations are generated using the \code{rnorm} function} + \item{sigma}{standard deviation of the innovations (Default= \code{0})} \item{seed}{integer indicating the seed value of the random number generator} @@ -23,9 +26,13 @@ Simulate the response of a system given the input } \details{ The routine is currently built only for SISO systems. Future Versions will -include support for MIMO systems. Current support +include support for MIMO systems. } -\seealso{ -\code{\link{sim.idpoly}} for simulating polynomial models +\examples{ +# ARX Model +u <- rnorm(200,sd=1) +model <- idpoly(A=c(1,-1.5,0.7),B=c(0.8,-0.25),ioDelay=1) +y <- sim(model,u,sigma=0.1) + } |