ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dfinvcumdt.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Author: David Fournier
5  * Copyright (c) 2008-2012 Regents of the University of California
6  */
11 #include <df1b2fun.h>
12 
18  double eps)
19 {
20  double sgn;
21  df1b2variable v;
22  if (value(u)<0.5)
23  {
24  v=2.0*u;
25  sgn=-1.0;
26  }
27  else
28  {
29  v=2.0*(1.0-u);
30  sgn=1.0;
31  }
32  df1b2variable pfive=0.5;
33  df1b2variable w=inv_cumd_beta_stable(0.5*n,pfive,v,eps);
34  return sgn*sqrt(n*(1.0/w-1.0));
35 }
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
Description not yet available.
Definition: df1b2fun.h:266
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
#define w
double eps
Definition: ftweak.cpp:13
Description not yet available.
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69