Home > Archive > PERL Beginners > January 2006 > GD::Help !
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| S Khadar 2006-01-10, 4:01 am |
| Dear all,
I am using GD::Graph for developing an online graph - What I need is a
(GD::Graphpoints) - Graph - I have already done this and works fine, Now I
want to draw a line (best fit straight line / trends line (linear) ) through
maximum number of points in this graph and I want to
circle them also . So just tell me, is there any way to draw best fit
straight line through the maximum number of points on a GD::Graph image.
Eagerly waiting for your reply,
Thanking you in anticipation,
SK
| |
| Chris Devers 2006-01-10, 4:01 am |
| On Sun, 25 Dec 2005, S Khadar wrote:
> I am using GD::Graph for developing an online graph - What I need is a
> (GD::Graphpoints) - Graph - I have already done this and works fine,
> Now I want to draw a line (best fit straight line / trends line
> (linear) ) through maximum number of points in this graph and I want
> to circle them also . So just tell me, is there any way to draw best
> fit straight line through the maximum number of points on a GD::Graph
> image.
"Best fit line" is mainly a statistical concept, and CPAN has multiple
modules for dealing with statistics. A search on http://search.cpan.org
for "best fit" turns up multiple hits, with the first one being the
documentation for Statistics::LineFit:
http://search.cpan.org/~randerson/S...tics/LineFit.pm
Using that module or one like it might be able to give you the
coordinates you need to add to your GD::Graph graph, but sorting out how
to do this will depend on how your overall code has been written.
--
Chris Devers
DO NOT LEAVE IT IS NOT REAL
|
|
|
|
|