PHP Classes
elePHPant
Icontem

Least Squares Fit: Plot graph with lines defined by least square fit

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-10-18 (9 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,263 This week: 1All time: 2,926 This week: 1,047Up
Version License PHP version Categories
linefit 1GNU General Publi...4Algorithms, Graphics, Math
Description Author

This class can be used to plot graphs with lines defined by the least square fit algorithm.

It takes the coordinates of a set of points and draws lines that minimize the distance to the points using the least square fit algorithm.

The generated graph is saved to a file in PNG format.

Innovation Award
PHP Programming Innovation award nominee
October 2007
Number 6


Prize: One copy of VS.PHP
Least squares fit is an algorithm for calculating the coordinates of a straight line that is located at a minimal distance to a set of points.

It is often used to draw scientific graphs of points that are expected to be aligned according to a linear equation.

This class can compute the coordinates and render a line that represents the least squares fit line for a given set of points.

Manuel Lemos
Picture of Sally Evans
Name: Sally Evans <contact>
Classes: 1 package by
Country: United Kingdom United Kingdom
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • Screenshot.jpg
  Files folder image Files  
File Role Description
Accessible without login Plain text file Lingraph.php Example Example
Accessible without login Plain text file Line-graph.php Doc. Webpage
Accessible without login Image file plot.png Output Picture
Accessible without login Plain text file testdata.csv Data Data for Line-graph.php
Plain text file ymxc.class Class Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,263
This week:1
All time:2,926
This week:1,047Up