Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return a probability value constrained to fall between 0 and 1 (inclusive) for the specified free scalar.
The transform is the inverse logit,
\(f(x) = \mbox{logit}^{-1}(x) = \frac{1}{1 + \exp(x)}\).
T | type of scalar |
[in] | x | unconstrained value |
Definition at line 26 of file prob_constrain.hpp.