errorFunction
errorFunction(
x):number
Defined in: src/error_function.js:15
The errorFunction(x/(sd * Math.sqrt(2))) is the probability that a value in a
normal distribution with standard deviation sd is within x of the mean.
This function returns a numerical approximation to the exact value. It uses Horner’s method to evaluate the polynomial of τ (tau).
Parameters
Section titled “Parameters”number
input
Returns
Section titled “Returns”number
error estimation
Example
Section titled “Example”errorFunction(1).toFixed(2); // => '0.84'