biexp

mdhelper.fit.exponential.biexp(x: ndarray, y0: float, a: float, b: float, c: float, d: float) ndarray[source]

Bi-exponential function.

\[y=y_0+a\exp{\left(-\frac{x}{b}\right)}+c\exp{\left(-\frac{x}{d}\right)}\]
Parameters:
xnumpy.ndarray

One-dimensional array containing \(x\)-values.

y0float

Offset \(y_0\).

afloat

Coefficient \(a\) for the first \(\exp\) term.

bfloat

Coefficient \(b\) for the \(x\) term in the first \(\exp\) term.

cfloat

Coefficient \(a\) for the second \(\exp\) term.

dfloat

Coefficient \(b\) for the \(x\) term in the second \(\exp\) term.

Returns:
fitnumpy.ndarray

Fitted \(y\)-values.