forum.alglib.net
http://forum.alglib.net/

Data point curve fitting. Polynomial linear equation
http://forum.alglib.net/viewtopic.php?f=2&t=77
Page 1 of 1

Author:  eljainc [ Wed Oct 13, 2010 8:20 pm ]
Post subject:  Data point curve fitting. Polynomial linear equation

Hello,

Is it possible to use ALGLib to fit a line of form y=ax+b. Say I have the following data points:

12 10.1542
13 16.59
14 15.5466
15 22.9597
16 36.8394
17 41.5816
18 51.5024
19 60.026
20 65.1672
21 62.9512
22 72.38
23 72.4192
24 80.0888
25 94.41
26 97.2659
27 95.6868
28 97.6835
29 113.109
30 126.1172
31 113.1448
32 126.4449
33 143.7965
34 118.164
35 142.7557
36 149.0824
37 78.8028
38 153.0144
39 3.17
40 153.94


Can I do this with ALGLib? Which functions are needed for this?
Thanks
Mike

Author:  Sergey.Bochkanov [ Thu Oct 14, 2010 2:27 pm ]
Post subject:  Re: Data point curve fitting. Polynomial linear equation

Yes, it is possible. Take a look at linreg subpackage.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/