17 return 1.0/(1.0+
exp(-x));
32 return log(x/(1.0-x));
44 cerr <<
"Error in double inv_cumd_norm_logistic -- illegal p value = "
49 cout <<
log(x) <<
" ";
54 for (
int i=1;i<=10;i++)
56 double yp=(1.0-p)*0.39894228*
exp(-.5*y*y) + p*
exp(-y)/
square(1.0+
exp(-y));
63 for (
int i=1;i<=10;i++)
65 double yp=(1.0-p)*0.39894228*
exp(-.5*y*y) + p*
exp(y)/
square(1.0+
exp(y));
double inv_cumd_logistic(const double &x)
Description not yet available.
prnstream & endl(prnstream &)
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.
double inv_cumd_norm_inner(double x)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double cumd_norm_logistic(double _x, double p)
Description not yet available.
double cumd_logistic(const double &x)
Description not yet available.
double cumd_norm(const double &x)
Culative normal distribution; constant objects.
double square(const double value)
Return square of value; constant object.
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double inv_cumd_norm_logistic(double x, double p)
Description not yet available.