diff options
author | Suraj Yerramilli | 2016-02-16 14:36:19 +0530 |
---|---|---|
committer | Suraj Yerramilli | 2016-02-16 14:36:19 +0530 |
commit | 02b430c61fc21692f46db27c2cba298910f15749 (patch) | |
tree | 6b1b3918295cd4ba7ff2fcb52e25cf17b443b235 | |
parent | a7fee22adb73746e19ac62250addeb441daaa493 (diff) | |
download | SysID-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.R | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) } |