kazewong / jim

Gravitational-wave data analysis tools in Jax
MIT License
59 stars 19 forks source link

The Jacobian determinant for transformation should take absolute value #126

Closed xuyuon closed 3 months ago

xuyuon commented 3 months ago

Currently, JIM computes the density change in the parameter space due to transformation by calculating the Jacobian determinant. The absolute value of the Jacobian determinant should be used; otherwise, feeding it into the calculation of the log Jacobian determinant may result in nan values.

thomasckng commented 3 months ago

Mentioned and fixed in #133

xuyuon commented 3 months ago

The fix is moved to #137