https://github.com/parth-paradkar/leastsquaremethod
This program plots(gives the points to be plotted) the best fitting linear graph from a set of readings.
https://github.com/parth-paradkar/leastsquaremethod
c graph-algorithms
Last synced: about 1 year ago
JSON representation
This program plots(gives the points to be plotted) the best fitting linear graph from a set of readings.
- Host: GitHub
- URL: https://github.com/parth-paradkar/leastsquaremethod
- Owner: parth-paradkar
- License: mit
- Created: 2019-01-02T16:33:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T02:35:58.000Z (about 7 years ago)
- Last Synced: 2025-01-10T03:11:40.515Z (over 1 year ago)
- Topics: c, graph-algorithms
- Language: Python
- Homepage:
- Size: 1.46 MB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### LeastSquareMethod
***
Plot a linear graph from a set of given coordinates that crosses the least number of squares on the graph.
## How to install:
1) Open a new terminal window and create a folder in the desired location
```
mkdir leastsquare
````
2) Clone this repository in this directory
```
git clone https://github.com/parthmax99/LeastSquareMethod.git
```
3) You are good to go!
## Usage
1) 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)

2) For a sample dataset the result will be as follows:

3) 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]*

4) Output:
