Scatter graph and Trend line

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
VGrillot
Newbie
Newbie
Posts: 5
Joined: Fri Nov 14, 2008 12:00 am

Scatter graph and Trend line

Post by VGrillot » Wed Mar 04, 2009 4:34 pm

Hi,

I'm trying the TTrendFunction with a scatter graph.
In this graph there is a compact cloud, and few lost points, most on the right.

Here a screenshot if I add a trend line:

Image


It's obvious that the trend line is false. At least the trend line is not what could be expected.

Is there a tool somewhere in steema library to automatically detect cloud, and ignore losts points ?


Here the result if I remove "manually" losts points, and add a new trend line (in green):
Image


Thanks for any help,
Vincent.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Thu Mar 05, 2009 2:48 pm

Hi Vincent,

Yes, it seems that points far of the core are more significant for the function than the others.

As you say, one workaround could be setting a condition to filter the "distant points" but I'm afraid I can't think on a general solution right now. I recommend you, if possible, to do your custom filter knowing the characteristics of your series.

You could create a dummy points series inactive, copy the validated points from the original one to it, and assign the trend function to this filtered series.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply