1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LUB_FREE_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_LUB_FREE_HPP 46 template <
typename T,
typename L,
typename U>
47 inline typename boost::math::tools::promote_args<T, L, U>::type
lub_free(
48 const T& y,
const L& lb,
const U& ub) {
49 check_bounded<T, L, U>(
"lub_free",
"Bounded variable", y, lb, ub);
54 return logit((y - lb) / (ub - lb));
boost::math::tools::promote_args< T, L >::type lb_free(const T &y, const L &lb)
Return the unconstrained value that produces the specified lower-bound constrained value...
boost::math::tools::promote_args< T, U >::type ub_free(const T &y, const U &ub)
Return the free scalar that corresponds to the specified upper-bounded value with respect to the spec...
fvar< T > logit(const fvar< T > &x)
const double INFTY
Positive infinity.
const double NEGATIVE_INFTY
Negative infinity.
boost::math::tools::promote_args< T, L, U >::type lub_free(const T &y, const L &lb, const U &ub)
Return the unconstrained scalar that transforms to the specified lower- and upper-bounded scalar give...