|
From: Patrick D. <pd...@gm...> - 2018-08-02 10:58:32
|
Hello, I have data with error bars on x and y. To fit them properly, i.e., by weighting the data, I need to convert the x error bar in y error bar. To do this I need to calculate the derivative of the fitting function. To make it right I need to calculate this derivative at each iteration and then to calculate the new error bars. It possible to do it with gnuplot? Thank. =========================================================================== Patrick DUPRÉ | | email: pd...@gm... Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France =========================================================================== |
|
From: atoms.h <l....@fr...> - 2008-07-04 19:20:08
|
Is it possible to contrain a fit parameter? For example a>0 or a=2..3? kind regards -- View this message in context: http://www.nabble.com/Fitting-tp18284810p18284810.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2008-07-04 21:09:45
|
atoms.h wrote: > Is it possible to contrain a fit parameter? > For example a>0 or a=2..3? You can use a function of your choice to map the fitted parameter to the one used in the function, e.g. a(a_fit) = exp(a_fit) # or # a(a_fit) = 2+tanh(a_fit)/2 fit f(x,a(a_fit)) 'data' via a_fit |
|
From: Ethan A M. <eam...@gm...> - 2018-08-02 15:40:35
|
On Thursday, 02 August 2018 12:58:24 Patrick Dupre wrote: > Hello, > > I have data with error bars on x and y. > To fit them properly, i.e., by weighting the data, I need to convert > the x error bar in y error bar. > To do this I need to calculate the derivative of the fitting function. > To make it right I need to calculate this derivative at each iteration and > then to calculate the new error bars. > It possible to do it with gnuplot? Gnuplot can handle data with separate error estimates on x and y. >From the documentation in "help fit" A few shorthands for the `errors` qualifier are available: `yerrors` (for fits with 1 column of independent variable), and `zerrors` (for the general case) are all equivalent to `errors z`, indicating that there is a single extra column with errors of the dependent variable. `xyerrors`, for the case of 1 independent variable, indicates that there are two extra columns, with errors of both the independent and the dependent variable. In this case the errors on x and y are treated by Orear's effective variance method. There is a worked example of use in the fit demo. Ethan > Thank. > > =========================================================================== > Patrick DUPRÉ | | email: pd...@gm... > Laboratoire de Physico-Chimie de l'Atmosphère | | > Université du Littoral-Côte d'Opale | | > Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 > 189A, avenue Maurice Schumann | | 59140 Dunkerque, France > =========================================================================== > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2018-08-02 15:45:51
|
Am 02.08.2018 um 12:58 schrieb Patrick Dupre:
> Hello,
>
> I have data with error bars on x and y.
> To fit them properly, i.e., by weighting the data, I need to convert
> the x error bar in y error bar.
Not really. If your gnuplot is not very ancient, it can do all that for
you. If you do not see "{y|xy|z}error" in your version's "help fit",
get a newer one.
|