pymatgen.util.convergence module¶
-
determine_convergence(xs, ys, name, tol=0.0001, extra='', verbose=False, mode='extra', plots=True)[source]¶ test it and at which x_value dy(x)/dx < tol for all x >= x_value, conv is true is such a x_value exists.
-
extrapolate_reciprocal(xs, ys, n, noise)[source]¶ return the parameters such that a + b / x^n hits the last two data points
-
get_derivatives(xs, ys, fd=False)[source]¶ return the derivatives of y(x) at the points x if scipy is available a spline is generated to calculate the derivatives if scipy is not available the left and right slopes are calculated, if both exist the average is returned putting fd to zero always returns the finite difference slopes
-
multi_curve_fit(xs, ys, verbose)[source]¶ fit multiple functions to the x, y data, return the best fit
-
multi_reciprocal_extra(xs, ys, noise=False)[source]¶ Calculates for a series of powers ns the parameters for which the last two points are at the curve. With these parameters measure how well the other data points fit. return the best fit.