Re: Curve fitting to data



Thomas,


On Sun, 2007-12-16 at 23:55 +0000, Thomas Adam wrote:
On 16/12/2007, Phil Rhoades <phil@xxxxxxxxxxxxx> wrote:
People,

Does anyone know of a Ruby app that will fit a curve to data eg fitting
a curve to:

-10 0
-9 19

This looks like a prime candidate for GNUPlot -- which ruby has bindings for.


I think GNUPlot requires the knowledge of the type of fn you are trying
to fit - I want the software to TELL me what sort of fn it is eg for the
data:

-10 0
-9 19
-8 36
-7 51
-6 64
-5 75
-4 84
-3 91
-2 96
-1 99
0 100
1 99
2 96
3 91
4 84
5 75
6 64
7 51
8 36
9 19
10 0

http://www.zunzun.com tells me that the formula for this data is:

y = a( atan(x) ) + b( x2 ) + c( sinh(x) ) + offset

I would like to be able to do this myself with my own (preferably Ruby)
code.

Thanks,

Phil.
--
Philip Rhoades

Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275)
GPO Box 3411
Sydney NSW 2001
Australia
Fax: +61:(0)2-8221-9599
E-mail: phil@xxxxxxxxxxxxx


.



Relevant Pages

  • Re: Curve fitting to data
    ... Does anyone know of a Ruby app that will fit a curve to data eg fitting ... You can access the "R" statistical package via Ruby, ...
    (comp.lang.ruby)
  • Re: Curve fitting to data
    ... Does anyone know of a Ruby app that will fit a curve to data eg fitting ... You can access the "R" statistical package via Ruby, ...
    (comp.lang.ruby)
  • Re: Curve fitting to data
    ... Does anyone know of a Ruby app that will fit a curve to data eg fitting ... This looks like a prime candidate for GNUPlot -- which ruby has bindings for. ...
    (comp.lang.ruby)
  • Re: non-linear curve fitting with 3 independent variables - suggest a software in Linux
    ... I tried to use GNUPLOT but I think it does not handle more than 2 ... independent variables. ... to fit the curve since I have more than 100 datasets like this. ...
    (sci.math.num-analysis)
  • Re: Cool Projects
    ... Ruby way of doing things so it'll be less of a port and more of a ... it might even be fit for a public alpha... ...
    (comp.lang.ruby)

Loading