Inverse complementary error function
erfcinv(
returns
the value of the Inverse Complementary Error Function for each element of x
)x
.
For inputs outside the interval [0 2]
, erfcinv
returns NaN
.
Use the erfcinv
function to replace expressions
containing erfinv(1-x)
for greater accuracy when x
is
close to 1
.
You can also find the inverse standard normal probability
distribution using the Statistics and Machine
Learning Toolbox™ function norminv
. The relationship between the inverse
complementary error function erfcinv
and norminv
is
For expressions of the form erfcinv(1-x)
,
use the inverse error function erfinv
instead.
This substitution maintains accuracy. When x
is
close to 1
, then 1 - x
is a
small number and might be rounded down to 0
. Instead,
replace erfcinv(1-x)
with erfinv(x)
.