Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1197

FIT A DATAFILE THROUGH ANOTHER DATAFILE

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!5g2000vbf.googlegroups.com!not-for-mail
From Roberto Guerra IDV Novi <cipitaua@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject FIT A DATAFILE THROUGH ANOTHER DATAFILE
Date Mon, 11 Jun 2012 06:27:41 -0700 (PDT)
Organization http://groups.google.com
Lines 15
Message-ID <3c8bd4d3-6360-4e6b-b830-09db7c44bf46@5g2000vbf.googlegroups.com> (permalink)
NNTP-Posting-Host 155.185.13.232
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1339421348 11022 127.0.0.1 (11 Jun 2012 13:29:08 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Mon, 11 Jun 2012 13:29:08 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info 5g2000vbf.googlegroups.com; posting-host=155.185.13.232; posting-account=2O-qFQoAAADoD53ggFgfKtcjT0vrOuwA
User-Agent G2/1.0
X-HTTP-UserAgent Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0,gzip(gfe)
X-Received-Bytes 1434
Xref csiph.com comp.graphics.apps.gnuplot:1197

Show key headers only | View raw


Hi,

I have a curve in a datafile that is supposed to be the weighted sum
of other two curves. I wish to find the coefficients for such sum so
that curve1=curve2*a+curve3*b.
I tried with the following fit:

 fit 0.0 "< paste curve1.dat curve2.dat curve3.dat" u 1:($2-$4*a-$6*b)
via a,b

but it sticks with the "Singular matrix" error.
Is there any workaround for that?

Thanks in advance,
Roberto

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

FIT A DATAFILE THROUGH ANOTHER DATAFILE Roberto Guerra IDV Novi <cipitaua@gmail.com> - 2012-06-11 06:27 -0700
  Re: FIT A DATAFILE THROUGH ANOTHER DATAFILE Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-06-11 21:28 +0200

csiph-web