Recent

Author Topic: [Tachart] Linear regression  (Read 7398 times)

pacific2

  • New Member
  • *
  • Posts: 17
[Tachart] Linear regression
« on: August 08, 2010, 12:13:45 pm »
Dear all
I have a set of data in a lineseries and I want to compute the parameters (a and b) of a linear regression (y= ax+b). I read (I don't remember where) that tachart have a buitin function that make it easy.

if I'm wrong I can of course built my own regression function.

regards

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: [Tachart] Linear regression
« Reply #1 on: August 08, 2010, 12:28:17 pm »
You can use LazStats for this.

pacific2

  • New Member
  • *
  • Posts: 17
Re: [Tachart] Linear regression
« Reply #2 on: August 08, 2010, 04:30:14 pm »
Thanks Leledumbo
Impressive project. May be a litle bit complex for what I need at the moment but I keep the link. I certainly need to use it in a near future.

Just for information. The sources as availlable for windows does not compile with my lazarus version. I had to add in the matmanunit.pas unit the keeword "var" before the list of variable at the line 246 just above the public declarations. After that it compile well.

regards

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: [Tachart] Linear regression
« Reply #3 on: August 08, 2010, 07:02:32 pm »
I have a set of data in a lineseries and I want to compute the parameters (a and b) of a linear regression (y= ax+b). I read (I don't remember where) that tachart have a buitin function that make it easy.

if I'm wrong I can of course built my own regression function.

No, TAChart only has TFuncSeries that makes displaying of your functions easy.
I am open to suggestions and patches for extending TAChart in this direction :-)

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: [Tachart] Linear regression
« Reply #4 on: August 08, 2010, 07:05:24 pm »
You can use LazStats for this.
Impressive project.

Indeed. Why does not it use TAChart, I wonder?

 

TinyPortal © 2005-2018