[Tachart] Linear regression lazarus / 55-TAChart ---------------------------------------------------------------------- pacific2 · 2010-08-08 10:13 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 · 2010-08-08 10:28 You can use LazStats for this. ---------------------------------------------------------------------- pacific2 · 2010-08-08 14:30 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 · 2010-08-08 17:02 Quote from: pacific2 on August 08, 2010, 12:13:45 pmI 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 · 2010-08-08 17:05 Quote from: pacific2 on August 08, 2010, 04:30:14 pmQuote from: Leledumbo on August 08, 2010, 12:28:17 pmYou can use LazStats for this. Impressive project. Indeed. Why does not it use TAChart, I wonder?