summaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-11-05 23:20:41 +0530
committerSuraj Yerramilli2015-11-05 23:20:41 +0530
commit0c61cfa95eff20db8e783cbfd466a67f31902490 (patch)
treeebf789bc6d3b1ce99da128d38270aaea12adb55d /R
parente60e8bb2b1f20d8631c0a7860cec679ccfcfd18c (diff)
downloadSysID-R-code-0c61cfa95eff20db8e783cbfd466a67f31902490.tar.gz
SysID-R-code-0c61cfa95eff20db8e783cbfd466a67f31902490.tar.bz2
SysID-R-code-0c61cfa95eff20db8e783cbfd466a67f31902490.zip
Updated sim documentation
Diffstat (limited to 'R')
-rw-r--r--R/sim.R21
1 files changed, 20 insertions, 1 deletions
diff --git a/R/sim.R b/R/sim.R
index 8426722..14e7049 100644
--- a/R/sim.R
+++ b/R/sim.R
@@ -1,3 +1,22 @@
+#' Simulate dynamic system
+#'
+#' Simulate the response of a system given the input
+#'
+#' @param model the system model to simulate
+#' @param input a vector/matrix containing the input
+#' @param sigma standard deviation of the innovations (Default= \code{0})
+#' @param seed integer indicating the seed value of the random number generator
+#'
+#' @return
+#' a vector containing the output
+#'
+#' @details
+#' The routine is currently built only for SISO systems. Future Versions will
+#' include support for MIMO systems. Current support
+#'
+#' @seealso
+#' \code{\link{sim.idpoly}} for simulating polynomial models
+#'
#' @export
sim <- function(model,input,sigma=0,seed=NULL) UseMethod("sim")
@@ -8,7 +27,7 @@ sim.default <- function(model,input,sigma=0,seed=NULL){
#' Simulate from a Polynomial Model
#'
-#' Simulate the response of a system system governed by a polynomial model
+#' Simulate the response of a system governed by a polynomial model
#' , given the input
#'
#' @param model an object of class \code{idpoly} containing the coefficients