diff options
author | Suraj Yerramilli | 2015-06-08 15:25:15 +0530 |
---|---|---|
committer | Suraj Yerramilli | 2015-06-08 15:25:15 +0530 |
commit | 489f029fc0ed358294ec19b1d276b980a5ca08a0 (patch) | |
tree | 6efdc0195faa44378c21f1b132e4b0ebcd2360a6 | |
parent | eed63d1e78d95931b5f446835fb6114254da9fb6 (diff) | |
download | SysID-R-code-489f029fc0ed358294ec19b1d276b980a5ca08a0.tar.gz SysID-R-code-489f029fc0ed358294ec19b1d276b980a5ca08a0.tar.bz2 SysID-R-code-489f029fc0ed358294ec19b1d276b980a5ca08a0.zip |
Modified idpoly constructor
-rw-r--r-- | R/poly.R | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,5 @@ #' @export -idpoly <- function(A,B,C,D,F1,ioDelay=0){ +idpoly <- function(A=1,B=1,C=1,D=1,F1=1,ioDelay=0){ out <- list(A= A,B=B,C=C,D=D,F1=F1,ioDelay = ioDelay) class(out) <- "idpoly" return(out) @@ -7,7 +7,7 @@ idpoly <- function(A,B,C,D,F1,ioDelay=0){ #' @export arx <- function(A,B,ioDelay=0){ - out <- idpoly(A=A,B=B,C=1,D=1,F1=1,ioDelay = ioDelay) + out <- idpoly(A=A,B=B,ioDelay = ioDelay) class(out) <- c("arx","idpoly") return(out) } @@ -49,7 +49,11 @@ print.arx <- function(obj){ #' @export armax <- function(A,B,C,ioDelay=0){ - out <- idpoly(A=A,B=B,C=C,D=1,F1=1,ioDelay = ioDelay) + out <- idpoly(A=A,B=B,C=C,ioDelay = ioDelay) class(out) <- c("armax","idpoly") return(out) +} + +oe <- function(B,C,ioDelay=0){ + out <- idpoly(B) }
\ No newline at end of file |