Linear Regression
-
To compile the application, can be used command "make"
-
Then you can run the application on the command-line
for example: ./linear_regression 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20
This command line provides 10 pairs of x and y values, and the program will output the slope and intercept of the linear regression line.