summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuraj Yerramilli2016-05-22 12:47:58 +0530
committerSuraj Yerramilli2016-05-22 12:47:58 +0530
commit34da70f8ddce88b33bc2a48609b7bfe5b7a40684 (patch)
tree21636ccdde541bf6d4295e2383985610fa066968
parent1418dac14c87ee4d4700628fce2921eccc473717 (diff)
downloadSysID-R-code-34da70f8ddce88b33bc2a48609b7bfe5b7a40684.tar.gz
SysID-R-code-34da70f8ddce88b33bc2a48609b7bfe5b7a40684.tar.bz2
SysID-R-code-34da70f8ddce88b33bc2a48609b7bfe5b7a40684.zip
excluding initial value in return
-rw-r--r--R/rarx.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/rarx.R b/R/rarx.R
index 89a4d8e..a121185 100644
--- a/R/rarx.R
+++ b/R/rarx.R
@@ -75,5 +75,5 @@ rarx <- function(x,order=c(1,1,1),lambda=0.95){
theta[i+1,] <- t(t(theta[i,,drop=F])+eps_i[1]*kappa_i)
Plast <- (diag(na+nb)-kappa_i%*%t(temp))%*%Plast/lambda
}
- list(theta=theta,yhat=yhat)
+ list(theta=theta[1+1:N,],yhat=yhat)
} \ No newline at end of file