From aa8d6a9fa5c020a2988a370150624f403121c939 Mon Sep 17 00:00:00 2001 From: Suraj Yerramilli Date: Sat, 21 Mar 2015 23:34:11 +0530 Subject: added a basic transfer function object --- R/tf.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit