summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuraj Yerramilli2015-03-23 00:23:36 +0530
committerSuraj Yerramilli2015-03-23 00:23:36 +0530
commitb1940de02177fc501d66048a01bb150e9113d6fb (patch)
tree90c98058e66f605567c0e8b942e72f403c055d48
parent4052c08aca7ad8528d04e9ed17e25b1cb910f399 (diff)
downloadSysID-R-code-b1940de02177fc501d66048a01bb150e9113d6fb.tar.gz
SysID-R-code-b1940de02177fc501d66048a01bb150e9113d6fb.tar.bz2
SysID-R-code-b1940de02177fc501d66048a01bb150e9113d6fb.zip
Fixed errors in the demean function
-rw-r--r--R/demean.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/demean.R b/R/demean.R
index 3a5a9ab..4ea5182 100644
--- a/R/demean.R
+++ b/R/demean.R
@@ -28,7 +28,7 @@ demean <- function(data){
data_demean$output <- data$output - output.mean
- data_demean$input <- data$input - input
+ data_demean$input <- data$input - input.mean
est <- list(fitted.values=data_detrend,output.mean = output.mean,
input.mean = input.mean)