erf {crone} | R Documentation |
Error function for real values
erf(x)
x |
A vector of real numbers. |
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).
x <- seq(-1,1,length=1000)
y <- erf(x)
plot(x,y,type="l")