PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,284 All time: 2,992 This week: 217Up
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
Age: ???
All time rank: 202689 in United Kingdom
Week rank: 496 Up16 in 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,284
This week:0
All time:2,992
This week:217Up