ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ccumdexp.cpp
Go to the documentation of this file.
1 
8 #include <fvar.hpp>
9 
14 double inv_cumd_exponential(double y)
15 {
16  if (y<=0.5)
17  return log(2.0*y);
18  else
19  return log(2.0*(1-y));
20 }
21 
26 double cumd_exponential(double x)
27 {
28  if (x<=0.0)
29  return 0.5*exp(x);
30  else
31  return 1.0-0.5*exp(-x);
32 }
double inv_cumd_exponential(double y)
Description not yet available.
Definition: ccumdexp.cpp:14
#define x
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.
Definition: d3arr2a.cpp:28
double cumd_exponential(double x)
Description not yet available.
Definition: ccumdexp.cpp:26
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: d3arr2a.cpp:13