[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## [Help-gsl] non-equal spacing data in nonlinear least squares fitting

**From**: |
Xeelee Xeelee |

**Subject**: |
[Help-gsl] non-equal spacing data in nonlinear least squares fitting |

**Date**: |
Thu, 10 Dec 2015 19:06:27 +0100 |

Hi,
I need to fit a data set in the form of { t ,f(t) }
(t is the argument f(t) is the value of function at t):
t_0, y_0
t_1, y_1
... , ...
t_n, y_n
but the t_i is not equally spaced, e.g.
T_my = {t_0, t_1, t_2, ...} = {0.1, 0.2, 0.4, 0.45, 0.7, 1.1, 1.21, ...}
In the example program:
http://www.gnu.org/software/gsl/manual/gsl-ref.html#Example-programs-for-Nonlinear-Least_002dSquares-Fitting
The input data is simply in the form
T_eg = {t_0, t_1, t_2, ...} = {0, 1, 2, 3, 4, 5, 6, 7, ....}
and {y_0,....,y_n}
Is there any place to provide T_my to the fitting program?
Thanks a lot,
X.N.

**[Help-gsl] non-equal spacing data in nonlinear least squares fitting**,
*Xeelee Xeelee* **<=**