Thomas, On Sun, 2007-12-16 at 23:55 +0000, Thomas Adam wrote: > On 16/12/2007, Phil Rhoades <phil / pricom.com.au> 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 / pricom.com.au