#169 help fitting

None
closed
nobody
fit (1)
5
2016-01-02
2014-06-18
Vincio
No

Hi,

I do fit these data:

0 50414
17 46909
37.4 43600
77.8 38450
159 31637
316 24043

with the function
f(x)=a+b/(x-c)

I use the command:

fit f(x) 'data' via a,b,c

but the fit is not good.

Thanks in advances for help

Vincenzo

Discussion

  • Christoph Bersch

    You need reasonable starting values. If you don't specify any values for a, b and c, they are set to 1, which is very far away from your expected solution and doesn't converge properly.

    Try with the starting values

    a = 7000
    b = 9e6
    c = -200
    
     
  • Vincio

    Vincio - 2014-06-18

    Thanks for the help ... now is good

     
    Last edit: Vincio 2014-06-18
  • Hans-Bernhard Broeker

    • labels: fit, function --> fit
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks