Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Return the linearly transformed value for the specified unconstrained input and specified offset and multiplier.
The transform applied is
\(f(x) = mu + sigma * x\)
where mu is the offset and sigma is the multiplier.
If the offset is zero and the multiplier is one this reduces to identity_constrain(x)
.
T | type of unconstrained input |
M | type of offset |
S | type of multiplier |
[in] | x | Unconstrained input |
[in] | mu | offset of constrained output |
[in] | sigma | multiplier of constrained output |
[in,out] | lp | Reference to log probability to increment. |
std::domain_error | if sigma <= 0 |
std::domain_error | if mu is not finite |
Definition at line 79 of file offset_multiplier_constrain.hpp.