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
Phi_approx.hpp
Go to the documentation of this file.
1
#ifndef __STAN__MATH__FUNCTIONS__PHI_APPROX_HPP__
2
#define __STAN__MATH__FUNCTIONS__PHI_APPROX_HPP__
3
4
#include <boost/math/tools/promotion.hpp>
5
#include <
stan/math/functions/inv_logit.hpp
>
6
7
namespace
stan {
8
namespace
math {
9
21
template
<
typename
T>
22
inline
typename
boost::math::tools::promote_args<T>::type
23
Phi_approx
(T x) {
24
return
inv_logit
(0.07056 *
std::pow
(x,3.0) + 1.5976 * x);
25
}
26
27
}
28
}
29
30
#endif
[
Stan Home Page
]
© 2011–2013, Stan Development Team.