Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return the lower and upper-bounded scalar derived by transforming the specified free scalar given the specified lower and upper bounds.
The transform is the transformed and scaled inverse logit,
\(f(x) = L + (U - L) \mbox{logit}^{-1}(x)\)
T | Scalar. |
L | Scalar. |
U | Scalar. |
[in] | x | Free scalar to transform. |
[in] | lb | Lower bound. |
[in] | ub | Upper bound. |
std::domain_error | if ub <= lb |
Definition at line 47 of file lub_constrain.hpp.