Im using some graphing software to produce charts which contain various
lines. One line i need to produce is a power trend line from an array
dataset. Has anyone had any experience of this in ruby?

Im using some graphing software to produce charts which contain various
lines. One line i need to produce is a power trend line from an array
dataset. Has anyone had any experience of this in ruby?

although, unless you have a compelling reason to use Ruby (such as
integrating with existing code) you may find it better to use R directly
(http://www.r-project.org/\).

If you have some sample data or code perhaps we can come up with some
examples,

Datum: Fri, 14 Nov 2008 20:24:01 +0900
Von: John Butler <johnnybutler7@gmail.com>
An: ruby-talk@ruby-lang.org
Betreff: Power Trend Line

Hi,

Im using some graphing software to produce charts which contain various
lines. One line i need to produce is a power trend line from an array
dataset. Has anyone had any experience of this in ruby?

I interpreted the original message to mean code to fit a, for example,
polynomial of a given order to some data. It's been a while since I
played with it but can Gruff do this ?

Im using some graphing software to produce charts which contain various
lines. One line i need to produce is a power trend line from an array
dataset.

I interpreted the original message to mean code to fit a, for example,
polynomial of a given order to some data. It's been a while since I
played with it but can Gruff do this ?

No, I don't think so, it's just for graphing (and for lines, rather than polynomials)
rather than fitting, for which the software you proposed can be used.
Maybe you're right that the OP wanted some fitting algorithm.

A good place to look for is "Linear Regression" (can be used also to determine
coefficients of polynomials). There is an example for Rb-gsl here: