-
Notifications
You must be signed in to change notification settings - Fork 1
Description
As noted in an earlier e-mail, if
As mentioned in #1, using exp
to make each element positive in the end gives us the augmented softmax parameterization.
We can do this as well with the hyperspherical transform, which is written
where
The requirement that
It turns out that the Jacobian determinant here is
I suspect due to the trigonometric functions, it may not be extremely efficient. However, all of these trigonometric functions are bijective over this range, so we can replace sines or cosines with numbers constrained to the interval
I'll shortly add Stan functions for both of these.