Return the linearly transformed value for the specified unconstrained input and specified offset and multiplier.
If the Jacobian
parameter is true
, the log density accumulator is incremented with the log absolute Jacobian determinant of the transform. All of the transforms are specified with their Jacobians in the Stan Reference Manual chapter Constraint Transforms.
- Template Parameters
-
Jacobian | if true , increment log density accumulator with log absolute Jacobian determinant of constraining transform |
T | A type inheriting from Eigen::EigenBase , a var_value with inner type inheriting from Eigen::EigenBase , a standard vector, or a scalar |
M | A type inheriting from Eigen::EigenBase , a var_value with inner type inheriting from Eigen::EigenBase , a standard vector, or a scalar |
S | A type inheriting from Eigen::EigenBase , a var_value with inner type inheriting from Eigen::EigenBase , a standard vector, or a scalar |
Lp | Scalar, the scalar types of T, M, and S should be convertable to this |
- Parameters
-
[in] | x | Unconstrained scalar input |
[in] | mu | offset of constrained output |
[in] | sigma | multiplier of constrained output |
[in,out] | lp | log density accumulator |
- Returns
- linear transformed value corresponding to inputs
- Exceptions
-
std::domain_error | if sigma <= 0 |
std::domain_error | if mu is not finite |
Definition at line 306 of file offset_multiplier_constrain.hpp.