I am fitting my data with a polynomial with curve_fit
. I have forced the fit to go through certain data points, but I actually don't know what those points are.
If this is my fitting function:
popt, pcov = curve_fit(func3, xdata1, ydata1, p0=(1, 1, 1, 1), sigma=weight1)
where:
weight1[[list(range(42,113))+list(range(156, 197))+ list(range(2000, 1100))]] = 0.01
What do the values, 42, 156, and 2000 actually represent? The values, 113, 197, and 1100 seem to be the index of the X-values. Essentially I don't know what the first value for range stands for.