Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #315
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!hd10g2000vbb.googlegroups.com!not-for-mail |
|---|---|
| From | Oliver Götze <goetze.oliver@googlemail.com> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Multible Fits using the same fit function lead to ?false? results. |
| Date | Tue, 17 May 2011 15:04:47 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 40 |
| Message-ID | <836a279c-e42c-4304-a7a5-6dfd90ebe7df@hd10g2000vbb.googlegroups.com> (permalink) |
| NNTP-Posting-Host | 178.25.101.214 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1305669888 21302 127.0.0.1 (17 May 2011 22:04:48 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Tue, 17 May 2011 22:04:48 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | hd10g2000vbb.googlegroups.com; posting-host=178.25.101.214; posting-account=KdIoJgoAAAATWOgNmMo4P5OVSN-hyJwf |
| User-Agent | G2/1.0 |
| X-HTTP-UserAgent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0,gzip(gfe) |
| Xref | x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:315 |
Show key headers only | View raw
Hi
i just noticed that using a gnuplot script like this:
fit a0 + a1*(1/x)**2 + a2*(1/x)**4\
'<grep -v \# table.dat |awk "\$1 =="10" {print 1,\$2} \
\$1 =="10" {print 2, \$3}\
\$1 =="10" {print 3, \$4}\
\$1 =="10" {print 4, \$5}"'via a0,a1,a2
print "value a0 ",a0
fit a0 + a1*(1/x)**2 + a2*(1/x)**4\
'<grep -v \# table.dat |awk "\$1 =="20" {print 1,\$2} \
\$1 =="20" {print 2, \$3}\
\$1 =="20" {print 3, \$4}\
\$1 =="20" {print 4, \$5}"'via a0,a1,a2
print "value a0 ",a0
fit a0 + a1*(1/x)**2 + a2*(1/x)**4\
'<grep -v \# table.dat |awk "\$1 =="30" {print 1,\$2} \
\$1 =="30" {print 2, \$3}\
\$1 =="30" {print 3, \$4}\
\$1 =="30" {print 4, \$5}"'via a0,a1,a2
print "value a0 ",a0
on a table.dat file like this (just an example):
#x y1 y2 y3
10 12 43 42
20 234 324 33
30 3 3 3
leads to false results, i have to reset (or set to zero) die
coefficients a0, a1, a2 after/before every fit by placing
a0=0
a1=0
a2=0
before each fit block in the gnuplot script.
If i do not do this the last values for the coefficients are taken
into the next fit and this is influencing the results.
The problem is the influence, because i do not know why this is so,
and setting them to zero is just one way i could use other values too!
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar
Multible Fits using the same fit function lead to ?false? results. Oliver Götze <goetze.oliver@googlemail.com> - 2011-05-17 15:04 -0700 Re: Multible Fits using the same fit function lead to ?false? results. Christoph Bersch <usenet@bersch.net> - 2011-05-18 09:54 +0200 Re: Multible Fits using the same fit function lead to ?false? results. Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-05-19 01:56 +0200
csiph-web