fit

  • full name: tenpy.tools.fit

  • parent module: tenpy.tools

  • type: module

Functions

alg_decay(x, a, b, c)

define the algebraic decay

alg_decay_fit(x, y[, npts, power_range, …])

Fit y to the form a * x**(-b) + c.

alg_decay_fit_res(log_b, x, y)

Returns the residue of an algebraic decay fit of the form x ** (-np.exp(log_b)).

alg_decay_fits(x, ys[, npts, power_range, …])

Fit arrays of y’s to the form a * x**(-b) + c.

lin_fit_res(x, y)

Returns the least-square residue of a linear fit y vs.

linear_fit(x, y)

Perform a linear fit of y to ax + b.

plot_alg_decay_fit(plot_module, x, y, fit_par)

Given x, y, and fit_par (output from alg_decay_fit), produces a plot of the algebraic decay fit.

Module description

tools to fit to an algebraic decay