Stan
1.3
probability, sampling & optimization
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerator
Friends
Macros
Pages
src
stan
math
functions
inv_logit.hpp
Go to the documentation of this file.
1
#ifndef __STAN__MATH__FUNCTIONS__INV_LOGIT_HPP__
2
#define __STAN__MATH__FUNCTIONS__INV_LOGIT_HPP__
3
4
#include <boost/math/tools/promotion.hpp>
5
6
namespace
stan {
7
8
namespace
math {
9
25
template
<
typename
T>
26
inline
typename
boost::math::tools::promote_args<T>::type
27
inv_logit
(
const
T a) {
28
using
std::exp
;
29
return
1.0 / (1.0 +
exp
(-a));
30
}
31
32
}
33
}
34
35
#endif
[
Stan Home Page
]
© 2011–2013, Stan Development Team.