ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vcumdlog.cpp
Go to the documentation of this file.
1 
9 #include <fvar.hpp>
10 
16 {
17  if (value(x)>=0.0)
18  {
19  return 1.0/(1.0+exp(-x));
20  }
21  else
22  {
23  dvariable y=exp(x);
24  return y/(1.0+y);
25  }
26 }
27 
33 {
34  return log(x/(1.0-x));
35 }
Base class for dvariable.
Definition: fvar.hpp:1315
#define x
double inv_cumd_logistic(const double &x)
Description not yet available.
Definition: ccumdlog.cpp:30
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_logistic(const double &x)
Description not yet available.
Definition: ccumdlog.cpp:13
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
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