gauss1¶
- mdhelper.fit.gaussian.gauss1(x: ndarray, a1: float, b1: float, c1: float) ndarray [source]¶
Convenience function for the
gauss1
model from MATLAB.\[y=a_1\exp{\left[-\left(\frac{x-b_1}{c_1}\right)^2\right]}\]- Parameters:
- xnumpy.ndarray
One-dimensional array containing \(x\)-values.
- a1float
Amplitude \(a_1\) of the first Gaussian term.
- b1float
Centroid \(b_1\) of the first Gaussian term.
- c1float
Peak width \(c_1\) of the first Gaussian term.
- Returns:
- fitnumpy.ndarray
Fitted \(y\)-values.