26 double z=0.3989422804*
exp(-.5*x2);
32 double tmp=z/x*(1.0 -1.0/b1 +1.0/b2 - a3/b3 +a4/b4 -a5/b5);
42 const double c0=2.515517;
43 const double c1=0.802853;
44 const double c2=0.010328;
45 const double d1=1.432788;
46 const double d2=0.189269;
47 const double d3=0.001308;
50 cerr <<
"Illegal argument to inv_cumd_norm = " << x <<
endl;
57 double p=((c2*t+c1)*t+c0)/((((d3*t+d2)*t+d1)*t)+1)-t;
69 double p=t-((c2*t+c1)*t+c0)/((((d3*t+d2)*t+d1)*t)+1);
92 const double b1=0.319381530;
93 const double b2=-0.356563782;
94 const double b3=1.781477937;
95 const double b4=-1.821255978;
96 const double b5=1.330274429;
97 const double p=.2316419;
101 double y= ((((b5*u+b4)*u+b3)*u+b2)*u+b1)*u;
102 double z=1.0-0.3989422804*
exp(-.5*x*x)*y;
109 double y= ((((b5*u+b4)*u+b3)*u+b2)*u+b1)*u;
110 double z=0.3989422804*
exp(-.5*x*x)*y;
121 const double b1=0.319381530;
122 const double b2=-0.356563782;
123 const double b3=1.781477937;
124 const double b4=-1.821255978;
125 const double b5=1.330274429;
126 const double p=.2316419;
130 double y= ((((b5*u+b4)*u+b3)*u+b2)*u+b1)*u;
131 double z=1.0-0.3989422804*
exp(-.5*x*x)*y;
139 double y= ((((b5*u+b4)*u+b3)*u+b2)*u+b1)*u;
140 double z=0.3989422804*
exp(-.5*x*x)*y;
double bounded_cumd_norm(const double x, double beta)
Description not yet available.
double inv_cumd_norm(const double &x)
Description not yet available.
prnstream & endl(prnstream &)
d3_array sqrt(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
d3_array exp(const d3_array &arr3)
Returns d3_array results with computed exp from elements in arr3.
dvariable beta(const prevariable &a, const prevariable &b)
Beta density function.
double inv_cumd_norm_inner(double x)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double cumd_norm(const double &x)
Culative normal distribution; constant objects.
double normal_tail_right(const double &x)
Description not yet available.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.