Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return the free scalar that when transformed to a probability produces the specified scalar.
The function that reverses the constraining transform specified in prob_constrain(T)
is the logit function,
\(f^{-1}(y) = \mbox{logit}(y) = \frac{1 - y}{y}\).
T | type of constrained value |
y | constrained value |
std::domain_error | if y is not in (0, 1) |
Definition at line 27 of file prob_free.hpp.