Top "Curve-fitting" questions

Fitting 1-D curve to data points, minimizing pre-defined error/loss function.

Curve fitting in R using nls

I'm trying to fit a curve over (the tail of) the following data: [1] 1 1 1 1 1 1 2 1 2 2 3 2 1 1 4 3 2 11 6 2 16 7 17 36 [25] 27 39 41 33 42 66 92 138 189 249 665 224 309 247 641 777 671 532 749 506 315 292 281 130 [49] 137 91 40 27 34 19 1 I'm using the following function in R …

r curve-fitting nls
How do I put a constraint on SciPy curve fit?

I'm trying to fit the distribution of some experimental values with a custom probability density function. Obviously, the integral of …

python optimization scipy curve-fitting
How can I calculate a trend line in PHP?

So I've read the two related questions for calculating a trend line for a graph, but I'm still lost. I …

php math coordinates curve-fitting least-squares
Fitting a closed curve to a set of points

I have a set of points pts which form a loop and it looks like this: This is somewhat similar …

python numpy scipy curve-fitting data-fitting
Python-load data and do multi Gaussian fit

I've been looking for a way to do multiple Gaussian fitting to my data. Most of the examples I've found …

python python-2.7 curve-fitting gaussian
Need to fit polynomial using chebyshev polynomial basis

I have been fitting linear least-squares polynomials to data using the polyfit function in matlab. From what I read, this …

matlab curve-fitting polynomial-math least-squares
SciPy curve_fit runtime error, stopping iteration

I am using scipy.optimize.curve_fit() in an iterative way. My problem is that when ever it is unable …

python scipy curve-fitting
Fitting with ggplot2, geom_smooth and nls

I am trying to fit data on an exponential decay function (RC like system) with equation: My data are on …

r ggplot2 curve-fitting
Curve Fitting to a time series in the format 'datetime'?

Here is my problem: polyfit does not take datetime values, so that I converted datetime with mktime producing the polynomial …

python datetime curve-fitting mktime axis-labels
Fitting a line that passes through the origin (0,0) to data

I have a set of points (x,y) and I need to find the line of best-fit that passes through …

algorithm matlab numerical curve-fitting least-squares