ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cinvcumdt.cpp
Go to the documentation of this file.
1 
5 #include <admodel.h>
6 
11 double inv_cumd_t(double n,double u,double eps)
12 {
13  double v,sgn;
14  if (u<0.5)
15  {
16  v=2.0*u;
17  sgn=-1.0;
18  }
19  else
20  {
21  v=2.0*(1.0-u);
22  sgn=1.0;
23  }
24  double w=inv_cumd_beta_stable(0.5*n,0.5,v,eps);
25  return sgn*sqrt(n*(1.0/w-1.0));
26 }
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