We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 138b93b commit 0224e19Copy full SHA for 0224e19
1 file changed
uncertaintyx/b/jax.py
@@ -226,14 +226,14 @@ def forward(u: Array) -> Array:
226
r"""
227
The forward (Charbonnier) transformation.
228
229
- Asymptotic limits are :math:`2u` for :math:`u \to \infty` and
+ The asymptotic limit is :math:`u` for :math:`u \to \infty` and
230
zero for :math:`u \to -\infty`.
231
"""
232
- return 0.25 * jnp.square(u + jnp.sqrt(jnp.square(u) + 4.0))
+ return 0.5 * (u + jnp.sqrt(jnp.square(u) + 4.0))
233
234
def inverse(c: Array) -> Array:
235
"""The inverse (Charbonnier) transformation."""
236
- return (c - 1.0) / jnp.sqrt(c)
+ return c - 1.0 / c
237
238
def misfit(u: Array, _: None = None) -> Array:
239
"""The misfit function with quadratic transformation."""
0 commit comments