We present the main functions and parameters:
The parameters are:
- f: Callable. The model function, f(x, ...). It must take the independent variable as the first argument and the parameters to fit as separate remaining arguments.
- xdata: An M-length sequence or an (k,M)-shaped array for functions with k predictors. The independent variable where the data is measured.
- ydata: M-length sequence. The dependent data—nominally f(xdata, ...).
- p0: None, scalar, or N-length sequence, optional. Initial guess for the parameters. If none, then the initial values will all be 1 (if the number of parameters for the function can be determined using introspection, otherwise a ValueError is raised).
- sigma: None or M-length sequence or M x