mdreg.exp_decay#

mdreg.exp_decay(signal, time=None, bounds=([0, 0], [inf, inf]), p0=[1, 1], parallel=False, **kwargs)[source]#

Exponential decay model fit

Parameters:
  • signal (numpy.ndarray) – Signal data Spatial array with signal intensities over a temporal dimension.

  • time (numpy.ndarray) – Timepoints of the signal data

  • bounds (tuple) – Bounds for the fit

  • p0 (list) – Initial parameters

  • parallel (bool) – Use parallel processing

  • **kwargs – Additional keyword arguments

Returns:

  • fit (numpy.ndarray) – Fitted data.

  • par (numpy.ndarray) – The parameters of the fitted signal model. The parameters are: S0, T, giving N=2.