summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuraj Yerramilli2016-02-27 15:57:37 +0530
committerSuraj Yerramilli2016-02-27 15:57:37 +0530
commitd1663d488782fcc9697244be073c10046fa921bc (patch)
treef1dff53917a135b044268b5cbedd3782677a3578
parent1a349f52502044410b9523ecbc4762571a9267f8 (diff)
downloadSysID-R-code-d1663d488782fcc9697244be073c10046fa921bc.tar.gz
SysID-R-code-d1663d488782fcc9697244be073c10046fa921bc.tar.bz2
SysID-R-code-d1663d488782fcc9697244be073c10046fa921bc.zip
minor corrections
-rw-r--r--R/sim.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/sim.R b/R/sim.R
index a3257f6..ea1f225 100644
--- a/R/sim.R
+++ b/R/sim.R
@@ -49,7 +49,7 @@ sim.idpoly <- function(model,input,addNoise = F,innov=NULL,seed=NULL){
ek <- innov
} else{
if(!is.null(seed)) set.seed(seed)
- ek <- rnorm(n,sd=model$noiseVar)
+ ek <- rnorm(n,sd=sqrt(model$noiseVar))
}
den1 <- as.numeric(polynomial(model$A)*polynomial(model$D))
filt1 <- Arma(b=model$C,a=den1)