ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vinvcumdt.cpp
Go to the documentation of this file.
1 
9 #include <admodel.h>
10 
15 dvariable inv_cumd_t(const prevariable& n,const prevariable& u,double eps)
16 {
17  double sgn;
18  dvariable v;
19  if (u<0.5)
20  {
21  v=2.0*u;
22  sgn=-1.0;
23  }
24  else
25  {
26  v=2.0*(1.0-u);
27  sgn=1.0;
28  }
29  dvariable pfive=0.5;
30  dvariable w=inv_cumd_beta_stable(0.5*n,pfive,v,eps);
31  return sgn*sqrt(n*(1.0/w-1.0));
32 }
Base class for dvariable.
Definition: fvar.hpp:1315
double inv_cumd_t(double n, double u, double eps)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: cinvcumdt.cpp:11
ivector sgn(const dvector &v)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: dvect24.cpp:11
double inv_cumd_beta_stable(double a, double b, double y, double eps)
d3_array sqrt(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: d3arr2c.cpp:11
Description not yet available.
#define w
double eps
Definition: ftweak.cpp:13
Fundamental data type for reverse mode automatic differentiation.
Definition: fvar.hpp:1518