![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Return the linearly transformed value for the specified unconstrained input and specified offset and multiplier, incrementing the specified reference with the log absolute Jacobian determinant of the transform.
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 multiplier is one, this function reduces to identity_constraint(x, lp)
.
T | type of scalar |
M | type of offset |
S | type of multiplier |
Lp | Scalar type, convertable from T, M, and S |
[in] | x | Unconstrained scalar 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 96 of file offset_multiplier_constrain.hpp.