funcs
Module¶
-
skbeam.core.fitting.funcs.
fit_quad_to_peak
(x, y)¶ Fits a quadratic to the data points handed in to the from y = b[0](x-b[1])**2 + b[2] and R2 (measure of goodness of fit)
- Parameters
- xndarray
locations
- yndarray
values
- Returns
- btuple
coefficients of form y = b[0](x-b[1])**2 + b[2]
- R2float
R2 value