linear_fit

  • full name: tenpy.tools.fit.linear_fit

  • parent module: tenpy.tools.fit

  • type: function

tenpy.tools.fit.linear_fit(x, y)[source]

Perform a linear fit of y to ax + b.

Returns a, b, res.