Regression courbe (R²)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
chopard
Newbie
Newbie
Posts: 1
Joined: Fri Apr 07, 2006 12:00 am

Regression courbe (R²)

Post by chopard » Thu Apr 19, 2012 8:57 am

I would like to know if there is a function to get the R ² of a regression curve
I found this function

//==============================================================================
Procedure TFormRecherche.ShowFunction1(TeeFunction:TCurveFittingFunction);
var t : Integer;
tmp : String;
begin
tmp:='y=';
With TeeFunction1 do
for t:=1 to PolyDegree do
begin
tmp:=tmp+' ';
if AnswerVector[t]>=0 then tmp:=tmp+'+';
tmp:=tmp+FormatFloat('0.0#',AnswerVector[t])+'*x';
if t>1 then tmp:=tmp+'^'+IntToStr(t);
end;
{ show the expression }
Edit1.Text := 'Débit réseau: '+tmp;
end;

Thank you for your help

Christian

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Regression courbe (R²)

Post by Narcís » Thu Apr 19, 2012 10:54 am

Hi Christian,

You should probably do as explained in the What's New?\Welcome!\New Features\Functions\y=mx+b example at the features demo available at TeeChart's program group. More information also available in this thread.

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply