erf: Error function

Description Usage Arguments Value References See Also

View source: R/erf.R

Description

The function erf() encodes the error function, defined as erf(x) = 2 * F(x * sqrt(2)) - 1, where F is the Gaussian distribution function.

Usage

1
erf(x, ...)

Arguments

x

numeric. A vector of input values.

...

Additional arguments to be passed to pnorm.

Value

A numeric vector of the same length as x.

References

https://en.wikipedia.org/wiki/Error_function.

See Also

pnorm from package stats.


statip documentation built on Nov. 18, 2019, 1:06 a.m.