After i have read in a data arranged in two columns, separated by white space characters and comprised of M = 1001 rows(where the data may be considered ordered pairs of points x and y), how do i use linear regression to find the equation of a line that best fits this data : y = mx+b
thanks :)
hawita
-3
Light Poster
Recommended Answers
Jump to PostEr, is this a C++ problem? Or, just a general maths problem? There are two ways in C++:
- Write your own functions to do it
- Use an existing library
I would recommend option 2. I've used the Gnu Scientific Library (GSL) in the past. It's a C …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.