imate
C++/CUDA Reference
|
#include "../_definitions/types.h"
Go to the source code of this file.
Functions | |
double | erf_inv (const double x) |
Inverse error function. More... | |
double erf_inv | ( | const double | x | ) |
Inverse error function.
The function inverse is found based on Newton method using the evaluation of the error function erf
from standard math library and its derivative. The Newton method here uses two refinements.
For further details on the algorithm, refer to: http://www.mimirgames.com/articles/programming/approximations- of-the-inverse-error-function/
The accuracy of this method for the whole input interval of [-1, 1] is in the order of 1e-15 compared to
scipy.special.erfinv
function.
[in] | Input | value, a float number between -1 to 1. |
Definition at line 63 of file special_functions.cpp.
References sign().
Referenced by ConvergenceTools< DataType >::average_estimates(), and ConvergenceTools< DataType >::check_convergence().