R/erf.R

Defines functions erf

Documented in erf

#' @title erf activation function
#' @param x a real number
#' @return \code{erf(x)}, erf value
#' @examples erf(10)
#' @keywords methods models
#' @export
erf <- function(x) {
  return(2 * stats::pnorm(x * sqrt(2)) - 1)
}

Try the EMJMCMC package in your browser

Any scripts or data that you put into this service are public.

EMJMCMC documentation built on June 22, 2024, 11:34 a.m.