Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3400 > unrolled thread
| Started by | Jonas Sodon <heiko.anafer@web.de> |
|---|---|
| First post | 2016-09-20 05:43 -0700 |
| Last post | 2016-09-20 23:11 -0700 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Fit Multiple Data Files Jonas Sodon <heiko.anafer@web.de> - 2016-09-20 05:43 -0700
Re: Fit Multiple Data Files Karl Ratzsch <mail.kfr@gmx.net> - 2016-09-20 16:02 +0200
Re: Fit Multiple Data Files Jonas Sodon <heiko.anafer@web.de> - 2016-09-20 23:11 -0700
| From | Jonas Sodon <heiko.anafer@web.de> |
|---|---|
| Date | 2016-09-20 05:43 -0700 |
| Subject | Fit Multiple Data Files |
| Message-ID | <70a2c8a1-a978-4504-be5a-251999d40555@googlegroups.com> |
Hi all, supose I have 3 data files containing data from the same meassurment and I want to create ONE fit through all 3 data sets. Is it possible to have one fit through multiple data sets in different files? If so, how? f(x) = a +b*x + c*x**2 fit f(x) "data1", "data2", "data3" via a,b,c did not work and the help section on multi-branch fitting left me even more clueless. Any help would be greatly apreciated. Cheers, Jonas
[toc] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2016-09-20 16:02 +0200 |
| Message-ID | <nrrfi3$bu7$1@solani.org> |
| In reply to | #3400 |
Am 20.09.2016 um 14:43 schrieb Jonas Sodon:
> supose I have 3 data files containing data from the same meassurment and I want to create ONE fit through all 3 data sets.
>
> Is it possible to have one fit through multiple data sets in different files? If so, how?
>
> f(x) = a +b*x + c*x**2
> fit f(x) "data1", "data2", "data3" via a,b,c
>
> did not work and the help section on multi-branch fitting left me even more clueless.
Multi-branch is for fitting more than one function & dataset with
identical parameters at the same time.
You just need to combine the files into one for fit, there are different
possibilities:
Do it permanently outside of gnuplot, or
fit f(x) '< cat data1 data2 data3' via ...
or
set table $data"
plot "data1", "data2", "data3"
unset table
fit f(x) $data
[toc] | [prev] | [next] | [standalone]
| From | Jonas Sodon <heiko.anafer@web.de> |
|---|---|
| Date | 2016-09-20 23:11 -0700 |
| Message-ID | <cf01269a-0aa9-42b1-b418-ddd16f399a0f@googlegroups.com> |
| In reply to | #3401 |
Thanks alot, the latter was exactly the simple solution I was hoping for.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web