1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LUB_FREE_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_LUB_FREE_HPP
44 template <
typename T,
typename TL,
typename TU>
46 typename boost::math::tools::promote_args<T, TL, TU>::type
49 stan::math::check_bounded<T, TL, TU>
50 (
"stan::math::lub_free",
53 if (lb == -std::numeric_limits<double>::infinity())
55 if (ub == std::numeric_limits<double>::infinity())
57 return logit((y - lb) / (ub - lb));
boost::math::tools::promote_args< T, TL, TU >::type lub_free(const T y, TL lb, TU ub)
Return the unconstrained scalar that transforms to the specified lower- and upper-bounded scalar give...
boost::math::tools::promote_args< T, TU >::type ub_free(const T y, const TU ub)
Return the free scalar that corresponds to the specified upper-bounded value with respect to the spec...
boost::math::tools::promote_args< T, TL >::type lb_free(const T y, const TL lb)
Return the unconstrained value that produces the specified lower-bound constrained value...
fvar< T > logit(const fvar< T > &x)