1 #ifndef STAN__AGRAD__REV__FUNCTIONS__PHI_APPROX_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__PHI_APPROX_HPP
52 double av_squared = av * av;
53 double av_cubed = av * av_squared;
55 double da = f * (1 - f) * (3.0 * 0.07056 * av_squared + 1.5976);
var Phi_approx(const stan::agrad::var &a)
Approximation of the unit normal CDF for variables (stan).
const double val_
The value of this variable.
boost::math::tools::promote_args< T >::type inv_logit(const T a)
Returns the inverse logit function applied to the argument.
vari * vi_
Pointer to the implementation of this variable.
Independent (input) and dependent (output) variables for gradients.