R/erf.R

Defines functions erf

Documented in erf

#' Error function
#' 
#' Implementation of error function.
#' 
#' See: https://en.wikipedia.org/wiki/Error_function#Complementary_error_function
#' 
#' @param x Numeric vector
#' @export

erf = function(x) 2 * pnorm(x * sqrt(2)) - 1
msxakk89/dat documentation built on Aug. 3, 2020, 6:39 p.m.