Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ offset_multiplier_free() [1/5]

template<typename T , typename M , typename S >
auto stan::math::offset_multiplier_free ( const T &  y,
const M &  mu,
const S &  sigma 
)
inline

Return the unconstrained variable that transforms to the specified offset and multiplier constrained variable given the specified offset and multiplier.

The transform in locmultiplier_constrain(T, double, double), is reversed by the reverse affine transformation,

\(f^{-1}(y) = \frac{y - L}{S}\)

where \(L\) and \(S\) are the offset and multiplier.

If the offset is zero and multiplier is one, this function reduces to identity_free(y).

Template Parameters
Ttype of constrained variable
Ltype of offset
Stype of multiplier
Parameters
yconstrained value
[in]muoffset of constrained output
[in]sigmamultiplier of constrained output
Returns
the unconstrained variable that transforms to the given constrained variable given the offset and multiplier
Exceptions
std::domain_errorif sigma <= 0
std::domain_errorif mu is not finite
std::invalid_argumentif non-scalar arguments don't match in size

Definition at line 42 of file offset_multiplier_free.hpp.