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


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

fit gives different results for identical functions with different var names

Newsgroups comp.graphics.apps.gnuplot
Date 2012-12-20 13:01 -0800
Message-ID <4da37e57-cdcd-474e-a3c3-7e98f09b1cb6@googlegroups.com> (permalink)
Subject fit gives different results for identical functions with different var names
From marcus.hanson@gmail.com

Show all headers | View raw


I am using gnuplot for windows, trying to fit gaussian data. I am doing this from a program that has to run many fits on different sets of data, so I would like to use different variable names. Unfortunately, it seems that unless I use single-character names, I get completely unreasonable results. The results are identical for the same data for every function with variable names more than one charcter long, but always reasonable for functions with variables only one variable long.

For example: 
fa(xa) = aa*exp(-(xa-ma)**2/(2*sa**2)) 
gives results identical to f2(x2) = a2*exp(-(x2-m2)**2/(2*s2**2)), but different from f(x) = a*exp(-(x-m)**2/(2*s**2))

I cannot find any restriction on length of variable names in the documentation.
Any ideas?

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


Thread

fit gives different results for identical functions with different var names marcus.hanson@gmail.com - 2012-12-20 13:01 -0800
  Re: fit gives different results for identical functions with different var names Brendan Halpin <brendan.halpin@ul.ie> - 2012-12-21 00:55 +0000
  Re: fit gives different results for identical functions with different var names Karl <mail.kfr@gmx.net> - 2012-12-21 12:42 +0100
    Re: fit gives different results for identical functions with different var names Marcus Hanson <marcus.hanson@gmail.com> - 2012-12-21 07:32 -0800
      Re: fit gives different results for identical functions with   different var names Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-12-21 19:21 +0100
        Re: fit gives different results for identical functions with   different var names Marcus Hanson <marcus.hanson@gmail.com> - 2012-12-21 11:54 -0800
          Re: fit gives different results for identical functions with     different var names Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-12-22 01:31 +0100

csiph-web