Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
lub_free Return the unconstrained variable that transforms to the y given the specified bounds.
Overload for matrix constrained variable, matrix upper bound, scalar lower bound.
Overload for matrix constrained variable, matrix lower bound, scalar upper bound.
The transform in lub_constrain
, is reversed by a transformed and scaled logit,
\(f^{-1}(y) = \mbox{logit}(\frac{y - L}{U - L})\)
where \(U\) and \(L\) are the lower and upper bounds.
T | type of bounded object |
L | type of lower bound |
U | type of upper bound |
y | constrained value |
lb | lower bound |
ub | upper bound |
std::invalid_argument | if the lower bound is greater than the upper bound, y is less than the lower bound, or y is greater than the upper bound Overload for all scalar arguments |
Definition at line 46 of file lub_free.hpp.