All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
calculate_chain.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_REV_SCAL_FUN_CALCULATE_CHAIN_HPP
#define STAN_MATH_REV_SCAL_FUN_CALCULATE_CHAIN_HPP
#include <valarray>
namespace stan {
namespace math {
inline double calculate_chain(const double& x, const double& val) {
return std::exp(x - val); // works out to inv_logit(x)
}
}
}
#endif
stan::math::calculate_chain
double calculate_chain(const double &x, const double &val)
Definition: calculate_chain.hpp:8
stan::math::exp
fvar< T > exp(const fvar< T > &x)
Definition: exp.hpp:10

[ Stan Home Page ] © 2011–2015, Stan Development Team.