Plot a linear graph from a set of given coordinates that crosses the least number of squares on the graph.
- Open a new terminal window and create a folder in the desired location
mkdir leastsquare
- Clone this repository in this directory
git clone https://github.com/parthmax99/LeastSquareMethod.git
- You are good to go!
- If the data is stored in a CSV file, enter the file path(filename in case the file is present in the current directory as an argument)
- For a sample dataset the result will be as follows:
- For a small number of points, you might prefer feeding the data through the terminal itself. The points must be in the format [x,y]
- Output: