Page 1 of 1

Clustering with TeeChart

Posted: Tue Jun 14, 2011 8:44 pm
by David
Hi !
There's a new sub-project (the idea is to include it with the next future version of TeeChart), to perform "Clustering" algorithms.
For more information and an executable beta example, visit this link:

http://www.steema.us/files/public/teech ... orial.html

As always, feel free to post here your inquiries and suggestions !
regards
david

Re: Clustering with TeeChart

Posted: Fri Nov 11, 2011 4:44 pm
by 16560701
Hi.

This is a great tool. If I can make it work. I am running D7 and just installed Teechart 2011. Actually I purchased the upgarde for this tool.

So I start with adding the followig to my code:

uses TeeClusteringTool;

Delphi complains that it cannot find "TeeClusteringTool.dcu"

So add the following sourse files to my project:

"TeeClusteringTool.pas" and "TeeClustering.pas"

and compile again and get the following errors:

__________________________________________________
[Error] TeeClusteringTool.pas(540): This form of method call only allowed for class methods
[Error] TeeClusteringTool.pas(541): Undeclared identifier: 'PolygonCentroid'
[Error] TeeClusteringTool.pas(774): Undeclared identifier: 'Z'
[Error] TeeClusteringTool.pas(864): Undeclared identifier: 'PolygonCentroid'
[Fatal Error] XPplot.pas(13): Could not compile used unit 'TeeCluster\TeeClusteringTool.pas
______________________________________________________________________________

and it comes from this function:

function TClusteringTool.GetHullCentroid(const ACluster:TCluster):TPointFloat;
var tmp : TPointArray;
begin
GetClusterPoints(ACluster, tmp);
TTeeCanvas.ConvexHull(tmp); <------------------ Error starts here.
result:=PolygonCentroid(tmp);
tmp:=nil;
end;


How can I proceed?

Can you provide sample code for the demo you have for this tool?

BR
emwamin

Re: Clustering with TeeChart

Posted: Tue Nov 15, 2011 8:23 am
by yeray
Hello emwamin,

You are right. We'll try to correct it for the next maintenance releases.
I'll send you the required units to the mail account you have registered in these forums.