uvex_transients.utils.stat_utils.convert_CI_to_fractional#

uvex_transients.utils.stat_utils.convert_CI_to_fractional(value: ArrayLike, upper: ArrayLike, lower: ArrayLike) → tuple[source]#

Convert an asymmetric confidence interval to fractional errors.

Parameters:
  • value (array-like) – The central value.

  • upper (array-like) – The upper and lower limits of the interval.

  • lower (array-like) – The upper and lower limits of the interval.

Returns:

The (lower, upper) fractional errors, (value - lower) / value and (upper - value) / value.

Return type:

tuple