Re: Curve fitting to data
- From: Phil Rhoades <phil@xxxxxxxxxxxxx>
- Date: Sun, 16 Dec 2007 19:07:14 -0500
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
.
- Follow-Ups:
- Re: Curve fitting to data
- From: jwmerrill@xxxxxxxxx
- Re: Curve fitting to data
- From: Alex Fenton
- Re: Curve fitting to data
- From: Marc Heiler
- Re: Curve fitting to data
- References:
- Curve fitting to data
- From: Phil Rhoades
- Re: Curve fitting to data
- From: Thomas Adam
- Curve fitting to data
- Prev by Date: Re: Curve fitting to data
- Next by Date: Plugin if statement not working :(
- Previous by thread: Re: Curve fitting to data
- Next by thread: Re: Curve fitting to data
- Index(es):
Relevant Pages
|
Loading