mstk.analyzer.fitting.curve_fit_rsq

mstk.analyzer.fitting.curve_fit_rsq(func, x_list, y_list, guess=None, bounds=None)

Least square curve fitting

Parameters:
  • func (function) –

  • x_list (list of float) –

  • y_list (list of float) –

  • guess (list of float, optional) –

  • bounds (list of float, optional) –

Returns:

  • coeff (tuple of float)

  • rsq (float)