erf: Error function for real values

Description Usage Arguments Value Examples

View source: R/various.R

Description

Error function for real values

Usage

1
erf(x)

Arguments

x

A vector of real numbers.

Value

A real number. The integral of the gaussian, centred on zero and with standard deviation equal to 1, between 0 and x, multiplied by 2/sqrt(pi).

Examples

1
2
3
x <- seq(-1,1,length=1000)
y <- erf(x)
plot(x,y,type="l")

jfoadi/crone documentation built on May 17, 2017, 7:19 p.m.