![]() |
Stan Math Library
5.1.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] | A | Unconstrained input |
| [in] | mu | offset of constrained output |
| [in] | sigma | multiplier of constrained output |
| std::domain_error | if sigma <= 0 |
| std::domain_error | if mu is not finite |
Definition at line 40 of file offset_multiplier_constrain.hpp.