exp2¶
- mdhelper.fit.exponential.exp2(x: ndarray, a: float, b: float, c: float, d: float) ndarray [source]¶
Convenience function for the
exp2
model from MATLAB.\[y=a\exp{(bx)}+c\exp{(dx)}\]- Parameters:
- xnumpy.ndarray
One-dimensional array containing \(x\)-values.
- 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.