home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / programs / education / fitline / !FitLine / !Help next >
Text File  |  1994-04-16  |  3KB  |  64 lines

  1.  +=========================================================================+
  2.  |                                                                         |
  3.  |                               FitLine                                   |
  4.  |                                                                         |
  5.  +=========================================================================+
  6.  |                                                                         |
  7.  |                           by Mike Williams                              |
  8.  |                                                                         |
  9.  |                    111 Evering Road, London N16 7SL                     |
  10.  |                                                                         |
  11.  +=========================================================================+
  12.  |                                                                         |
  13.  |       This program is in the public domain and may be copied            |
  14.  |         freely as long as no profit is made in the process              |
  15.  |                                                                         |
  16.  +=========================================================================+
  17.                   
  18.  Overview
  19.  ========
  20.  
  21. This program fits the best straight line to a number of points.
  22.  
  23. If you perform an experiment and you think that there may be a linear
  24. relationship between the input and output parameters, then this program will
  25. find that relationship.
  26.  
  27. Drop a text file containing a list of X and Y coordinates onto the iconbar
  28. icon.
  29.  
  30.  Input File
  31.  ==========
  32.  
  33. The input should be in a text file, and should be a list of pairs of numbers
  34. separated by spaces, commas or newline characters. The following are all
  35. valid and indicate the same point.
  36.  
  37.          1 -2.5
  38.  
  39.          1,-2.5
  40.  
  41.          1
  42.          -2.5
  43.  
  44. Any characters other than 0123456789-. are assumed to be comments and are
  45. ignored. *WARNING* do not use the characters "-" or "." in any comments as
  46. these will be construed as numerics.
  47.  
  48. There must be at least two points (i.e. four values) in the input file.
  49.  
  50.  Best Fit
  51.  ========
  52.  
  53. The best fit line is defined to be the line which minimizes the sum of the
  54. squares of the error distances. (Least Squares Method).
  55.  
  56. The program does not comment on how good a fit this is. Given a cloud of
  57. completely random points, the program will still produce a best fit line. A
  58. graph is drawn, showing the points and the line. It is up to you to decide
  59. if a straight line is a sensible representation of the data.
  60.  
  61. If you think that the best fit may be a power function of the form 
  62. "y = K*x^n" then you can drop the same input file onto !FitPower, and see if
  63. that looks any better.
  64.