aboutsummaryrefslogtreecommitdiff
path: root/R/SFO_actual_twa.R
blob: 63a53f3b9baf14889f1edbcbce052e22f816f882 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#' Actual and maximum moving window time average concentrations for SFO kinetics
#'
#' @param DT50 The half-life.
#' @param times The output times, and window sizes for time weighted average concentrations
#' @export
#' @author Johannes Ranke
#' @source FOCUS (2014) Generic Guidance for Estimating Persistence and Degradation
#'   Kinetics from Environmental Fate Studies on Pesticides in EU Registration, Version 1.1, 
#'   18 December 2014, p. 251
#' @examples
#' SFO_actual_twa(10)
SFO_actual_twa <- function(DT50 = 1000, times = c(0, 1, 2, 4, 7, 14, 21, 28, 42, 50, 100))
{
  k = log(2)/DT50
  result <- data.frame(actual = 1 * exp(-k * times),
                       twa = (1 - exp(-k * times))/(k * times),
                       row.names = times)
  return(result)
}

Contact - Imprint