Fit.__init__(x_array, y_array, fitter, p0=None)[source]
  • x_array,y_array – curve to fit, as two 1d numpy arrays
  • fitter

    a tuple (F, name, init_value_default) where :

    • F is a function : (x, *param_tuple) -> y, which act on numpy arrays x and y
    • name is string for which name%param_tuple gives the TeX representation of the function
    • init_value_default is the default init point of the minimization
  • p0 – init guess of the fit. If None, uses the init_value_default of the function.