uvex_transients.phase_space.sampling.breakout.half_decline_time#

uvex_transients.phase_space.sampling.breakout.half_decline_time(p: float, q: float, x_break: float, smoothness: float) → tuple[float, float][source]#

Return the time of the peak and of the half-decline of the light curve, in units of its time scale \(t_0\).

The light curve is that of InverseGammaBrokenPowerLawLightcurve. The half-decline is the time after the peak at which the luminosity has fallen to half of its maximum.

Parameters:
  • p (float) – The shape parameters of the light curve.

  • q (float) – The shape parameters of the light curve.

  • x_break (float) – The shape parameters of the light curve.

  • smoothness (float) – The shape parameters of the light curve.

Returns:

  • x_peak (float) – The time of the peak since breakout, in units of \(t_0\).

  • x_half (float) – The time of the half-decline since breakout, in units of \(t_0\).

Raises:

ValueError – If the light curve never falls to half of its peak.