R/F3.R

#' F3 (Amplitude) function.
#' 
#' Represents the amount by which failed test values do not meet their objectives
#'
#' @param nse normalized sum of excursions
#' 
#' @export
#' @details
#' Inputs must be numeric.
#' \deqn{F_{3} = \frac{Normalized sum of excursions}{0.01 * normalized sum of excursions + 0.01}}
#' 
#' @seealso \url{http://www.ccme.ca/en/resources/canadian_environmental_quality_guidelines/calculators.html}
F3 <- function(nse) {
  
  assertthat::assert_that(is.numeric(nse))

  nse / (0.01 * nse + 0.01)
}
jgrew/ccmewqi documentation built on May 19, 2019, 9:26 a.m.