![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Return the simplex corresponding to the specified free vector.
A simplex is a vector containing values greater than or equal to 0 that sum to 1. A vector with (K-1) unconstrained values will produce a simplex of size K.
The simplex transform is defined using the inverse of the isometric log ratio (ILR) transform. This is equivalent to softmax(sum_to_zero_constrain(y))
.
T | Type of vector to constrain |
y | Free vector input of dimensionality K - 1 |
Definition at line 30 of file simplex_constrain.hpp.