ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vcumdexp.cpp
Go to the documentation of this file.
1 
9 #include <fvar.hpp>
10 
16 {
17  if (y<=0.5)
18  return log(2.0*y);
19  else
20  return log(2.0*(1-y));
21 }
22 
28 {
29  if (x<=0.0)
30  return 0.5*exp(x);
31  else
32  return 1.0-0.5*exp(-x);
33 }
Base class for dvariable.
Definition: fvar.hpp:1315
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
Fundamental data type for reverse mode automatic differentiation.
Definition: fvar.hpp:1518
d3_array log(const d3_array &arr3)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: d3arr2a.cpp:13