summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuraj Yerramilli2016-02-16 14:36:19 +0530
committerSuraj Yerramilli2016-02-16 14:36:19 +0530
commit02b430c61fc21692f46db27c2cba298910f15749 (patch)
tree6b1b3918295cd4ba7ff2fcb52e25cf17b443b235
parenta7fee22adb73746e19ac62250addeb441daaa493 (diff)
downloadSysID-R-code-02b430c61fc21692f46db27c2cba298910f15749.tar.gz
SysID-R-code-02b430c61fc21692f46db27c2cba298910f15749.tar.bz2
SysID-R-code-02b430c61fc21692f46db27c2cba298910f15749.zip
support for printing bj models
-rw-r--r--R/poly.R8
1 files changed, 6 insertions, 2 deletions
diff --git a/R/poly.R b/R/poly.R
index 138cbbd..9ab4fab 100644
--- a/R/poly.R
+++ b/R/poly.R
@@ -175,8 +175,12 @@ params <- function(x){
coefs <- c(coefs,x$C[-1])
nc <- length(x$C)-1
}
- } else if(x$type=="oe"){
- coefs <- c(x$B,x$F1[-1])
+ } else if(x$type=="oe"||x$type=="bj"){
+ coefs <- c(x$B)
+ if(x$type=="bj"){
+ coefs <- c(coefs,x$C[-1],x$D[-1])
+ }
+ coefs <- c(coefs,x$F1[-1])
nf <- length(x$F1) - 1; nk <- x$ioDelay;
nb <- length(x$B)
}