10 const double c[] = {2.515517, 0.802853, 0.010328};
11 const double d[] = {1.432788, 0.189269, 0.001308};
12 return t - ((c[2] * t + c[1])*t + c[0]) /
13 (((d[2]*t + d[1])*t + d[0])*t + 1.0);
19 if(p <= 0.0 || p >= 1.0)
21 throw std::invalid_argument(
"Invalid input argument - 0.0 > p < 1.0");
double normalCDFInverse(double p)
Definition: normalDistribution.h:17
double rationalApproximation(double t)
Definition: normalDistribution.h:6