Stan Math Library
4.9.0
Automatic Differentiation
|
auto stan::math::simplex_constrain | ( | const T & | y, |
scalar_type_t< T > & | lp | ||
) |
Return the simplex corresponding to the specified free vector and increment the specified log probability reference with the log absolute Jacobian determinant of the transform.
The simplex transform is defined through a centered stick-breaking process.
T | type of the vector to constrain |
y | Free vector input of dimensionality N. |
lp | Log probability reference to increment. |
Definition at line 85 of file simplex_constrain.hpp.