skued.exponential
- skued.exponential(time, tzero, amp, tconst, offset=0)
Exponential curve with onset. Equivalent to the following function:
\[\begin{split}I(t) = \begin{cases} I_0 + O &\text{if } t < t_0 \\ I_0 e^{-(t - t_0)/\tau} + O &\text{if } t \ge t_0 \end{cases}\end{split}\]where \(\Theta(t - t_0)\) is the Heaviside step function.
This functions is expected to be used in conjunction with
scipy.optimize.curve_fit
or similar fitting routines.- Parameters:
- Returns:
exp – Exponential curve.
- Return type:
~numpy.ndarray, shape (N,)
See also
biexponential
bi-exponential curve with onset