aboutsummaryrefslogtreecommitdiff
path: root/pkg/R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-05-07 16:15:23 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2015-05-07 16:15:23 +0200
commit8021c7cb9aac06e961227a3c0e0b013ec2d2d501 (patch)
treefcf21c5798ace16b7fed67e9843bd851be7ba6a2 /pkg/R
parent508d883f7689d617d15915dbd26a27f1613bb857 (diff)
Bugfix: Reset maximum event concentration for each event
Diffstat (limited to 'pkg/R')
-rw-r--r--pkg/R/TOXSWA_cwa.R1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/R/TOXSWA_cwa.R b/pkg/R/TOXSWA_cwa.R
index 948d7a9..7fd8ec1 100644
--- a/pkg/R/TOXSWA_cwa.R
+++ b/pkg/R/TOXSWA_cwa.R
@@ -252,6 +252,7 @@ TOXSWA_cwa <- R6Class("TOXSWA_cwa",
pre_interval = event_start - event_end
i_start = i
event = TRUE
+ event_max = cwa_cur
}
} else {
if (cwa_cur > event_max) event_max = cwa_cur

Contact - Imprint