summaryrefslogtreecommitdiff
path: root/R/tf.R
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-03-21 23:34:11 +0530
committerSuraj Yerramilli2015-03-21 23:34:11 +0530
commitaa8d6a9fa5c020a2988a370150624f403121c939 (patch)
tree2d20f507a92d8e49ffa8a93622e7d9f15eb17098 /R/tf.R
parentd69c2fa0ff83c613d799e5a74af51a35fcf0717c (diff)
downloadSysID-R-code-aa8d6a9fa5c020a2988a370150624f403121c939.tar.gz
SysID-R-code-aa8d6a9fa5c020a2988a370150624f403121c939.tar.bz2
SysID-R-code-aa8d6a9fa5c020a2988a370150624f403121c939.zip
added a basic transfer function object
Diffstat (limited to 'R/tf.R')
-rw-r--r--R/tf.R4
1 files changed, 3 insertions, 1 deletions
diff --git a/R/tf.R b/R/tf.R
index 135a2d7..f811b6c 100644
--- a/R/tf.R
+++ b/R/tf.R
@@ -1,6 +1,8 @@
# S3 class for defining trasnfer functions
tf <- function(num=c(1),den=c(1),Ts=1){
-
+ out <- list(num=num,den=den,Ts=Ts)
+ class(out) <- "tf"
+ return(out)
}
# Display the Transfer Function