fit_data¶
-
Data_Reduction.hyperfine_fit.
fit_data
(x, data, model, parameter_guess)¶ fit noisy data to the model
:type x : numpy array of float :param x : array of abcissa values
:type data : numpy array of float :param data : array of ordinate values
:type model : name of a function :param model : function to be fitted to data
:type parameter_guess : list :param parameter_guess : [amplitude, center_x, width]
- Returns
tuple output from scipy.optimize.leastsq