Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (7 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,238 All time: 2,864 This week: 1,325Up
Version License PHP version Categories  
linefit 1GNU General Public Lice...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
Age: ???
All time rank: 189281 in United Kingdom United Kingdom
Week rank: 1763 Up80 in United Kingdom United Kingdom Up
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,238All time:2,864
 This week:0This week:1,325Up