From: Chris Lowis Date: 2008-11-17T03:26:59+09:00 Subject: Re: Power Trend Line > 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? One approach would be to use the fitting libraries provided by the GSL: http://www.gnu.org/software/gsl/manual/html_node/Least_002dSquares-Fitting.html To access this from Ruby you can use the Ruby GSL bindings : http://rb-gsl.rubyforge.org/ Another approach may be to use the Ruby/R interface RRRuby : http://rubyforge.org/projects/rsruby/ 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, Hope this helps, Chris -- Posted via http://www.ruby-forum.com/.