ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
linad99/invlogit.cpp
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Authors: Anders Nielsen <anders@nielsensweb.org>
5  */
10 #include <fvar.hpp>
11 
16  return 1/(1+exp(-x));
17 }
#define x
dvariable invlogit(dvariable x)
Inverse logit function.
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
Fundamental data type for reverse mode automatic differentiation.
Definition: fvar.hpp:1518