Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return the free scalar that corresponds to the specified upper-bounded value with respect to the specified upper bound.
The transform is the reverse of the ub_constrain(T, double)
transform,
\(f^{-1}(y) = \log -(y - U)\)
where \(U\) is the upper bound.
T | type of scalar |
U | type of upper bound |
y | constrained scalar with specified upper bound |
ub | upper bound |
std::invalid_argument | if constrained scalar is greater than the upper bound. |
Definition at line 35 of file ub_free.hpp.