home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / MATH / FIT2_117.ZIP / FIT2.DOC < prev    next >
Encoding:
Text File  |  1991-05-21  |  13.7 KB  |  394 lines

  1.                 FIT2.EXE, curve fitting and data modeling
  2.                 *****************************************
  3.  
  4.                           ____________________
  5.                          │                    │
  6.                          │    version 1.17    │
  7.                          │                    │
  8.                          │     May / 1991     │
  9.                          │____________________│
  10.  
  11.  
  12.  
  13.         What is FIT2 ?
  14.         **************
  15.  
  16.         FIT2 is a tool that allows you to find closed-form solution to both
  17.         linear and non-linear modelling problems.
  18.  
  19.  
  20.  
  21.         What are the main resources of FIT2 ?
  22.         *************************************
  23.  
  24.         - FIT2 produces screen graphics that are automatic scaled and
  25.         displayed in CGA  mode (or EGA, VGA, depending the graphic card
  26.         you desire). A HERCULES GRAPHICS ADAPTER with CGA emulator will
  27.         also work fine.
  28.  
  29.         - FIT2 provides very powerful data analysis tools that include not
  30.         only linear regression analysisbut non-linear and specially
  31.         polynomial regression.
  32.  
  33.         - FIT2 allows you to extrapolate values for any curve, with a
  34.         graphical vision.
  35.  
  36.         - with FIT2 you can make data transformation like adding something
  37.         to Y series, or generating a random Y series, etc.
  38.  
  39.         - FIT2 uses a ASCII open format for data files and it provides a
  40.         simple way to export and import data from/to popular spreadsheet
  41.         and others packages interfaced with FIT2.
  42.  
  43.  
  44.         Why FIT2 ?
  45.         **********
  46.  
  47.         I wrote FIT2 because I use data analysis daily and needed a little
  48.         more than the spreadsheets had to offer.  I do have several other
  49.         curve fitting programs at my disposal, and no doubt they have some
  50.         great features, but I have yet to find one with this friendly
  51.         interface.
  52.         I was tempted to write a full curve fitting in the beginning, but
  53.         I have decided against it since comercial packages actually does
  54.         quite nicely under most circumstances: they come with expensive
  55.         packages, they have high level routines, and they will do most
  56.         everything you need a curve fitting program will do.  Because of
  57.         that, I decided to simply write something simple to solve the common
  58.         problems that I have.
  59.  
  60.  
  61.     Are there any outstanding bugs that you know of?
  62.         ************************************************
  63.  
  64.         FIT2 has been tested on an IBM PC, PC/XT, PC/AT, PC386 and laptops as
  65.         TOSHIBA T1000, T3100 computers. No troubles were detected. You can
  66.         use up to 5000 data points. Sometimes overflow occurs because in this
  67.         version I have used single precision values.
  68.  
  69.  
  70.         Lets explain each of the features of FIT2:
  71.         ******************************************
  72.  
  73.         1.) data entry - keyboard
  74.  
  75.                 This is the mechanism used to introduce data using the
  76.                 keyboard, without edition. After FIT2 is loaded the default
  77.                 is the keyboard data entry option. You can move to other
  78.                 options pressing up or down the arrow key.
  79.  
  80.         2.) data entry - file
  81.  
  82.                 This feature allows you to select a file (extension .DAT) to
  83.                 load the data to the memory and work. Pressing the up or down
  84.                 arrow key, point to the name of the file desired to load and
  85.                 press RETURN.
  86.                 The seventy first characters of the 10 top lines are displayed
  87.                 with the reference position of each digit of the file data.
  88.                 Choose the correct distribution of digits and enter with the
  89.                 loading data.
  90.  
  91.                 example:
  92.  
  93.                 seventy characters of the 10 top lines: xxxxxx (below)
  94.  
  95.                 Supose that you want to do the variable C as X and the
  96.                 variable A as Y. Than choose the following:
  97.  
  98.                         A       B       C       D
  99.                         1       5       81      41
  100.                         2       3       82      42
  101.                         3       4       85      43
  102.                         4       4       82      42
  103.                         5       8       83      41
  104.                         6       11      87      42
  105.                         7       52      88      43
  106.                         8       12      89      40
  107.                         9.5     7       111     19
  108.                         12      11      101     58
  109.  
  110.                 1........01........01.......01........01.....................
  111.                 │           │       │        │
  112.                 │           │       │        │final position
  113.                 │           │       │        │of X variable
  114.                 │           │       │
  115.                 │           │       │
  116.                 │           │       │initial position
  117.                 │           │       │of X variable
  118.                 │           │
  119.                 │           │final position
  120.                 │           │of Y variable
  121.                 │
  122.                 │
  123.                 │initial position
  124.                 │of Y variable
  125.  
  126.                 Enter the values for each position or ENTER for defaults.
  127.                 If there are "dummy lines" or lines that the program have
  128.                 to jump (skip) when reading data. For example, imagine that
  129.                 one line is usefull and the other is unusefull, till the end
  130.                 of the file. So inform to the dummy lines question the
  131.                 value 1, for read one line and skip the following, and so on.
  132.  
  133.                 With dummy lines=2
  134.  
  135.                 3 read this line
  136.                 5 do not read
  137.                 6 do not read
  138.                 9 read this line
  139.                 12 do not read
  140.                 34 do not read
  141.                 12 read this line
  142.                 ................
  143.                 ................
  144.  
  145.                 For exit without loading file enter 0 (zero) for each
  146.                 question.
  147.  
  148.  
  149.         3.) Save current data
  150.  
  151.                 This feature allows you to save the current data in disk
  152.                 files with .DAT extension name.
  153.                 Only after saved the current data, the TITLE will be
  154.                 displayed on the top of each graphic screen.
  155.                 The format used for saving data on disk is with five
  156.                 integers and four decimals, separeted by a dot (#####.####).
  157.  
  158.         4.) Edit current data
  159.  
  160.                 This is how you change the values of the current memory. The
  161.                 options are showed at the bottom line and it is possible to:
  162.  
  163.                 - delete a value pressing DEL and giving the order of the
  164.                 value to be deleted.
  165.  
  166.                 - modify a value pressing F1 and giving the order and
  167.                 contents of X and Y variables.
  168.  
  169.                 - insert a new value pressing INS and giving the position
  170.                 as well the contents of X and Y values.
  171.  
  172.                 - move to bottom (END) or top (HOME) or each page up (PGUP)
  173.                 or each page down (PGDN).
  174.  
  175.  
  176.         5.) Print current data
  177.  
  178.                 This option allows you to output the current value on the
  179.                 printer.
  180.  
  181.  
  182.         6.) Linear regression
  183.  
  184.                 This option shows graphically the points introduced and the
  185.                 best line fitted to these points, with the equation and the
  186.                 coefficient of determination.
  187.  
  188.  
  189.         7.) Exponential regression
  190.  
  191.                 This option shows graphically the points introduced and the
  192.                 best exponential curve fitted to these points, with the
  193.                 equation and the coefficient of determination.
  194.  
  195.  
  196.         8.) Geometric regression
  197.  
  198.                 This option shows graphically the points introduced and the
  199.                 best geometric curve fitted to these points, with the
  200.                 equation and the coefficient of determination.
  201.  
  202.  
  203.         9.) Logarithmic regression
  204.  
  205.                 This option shows graphically the points introduced and the
  206.                 best logarithmic curve fitted to these points, with the
  207.                 equation and the coefficient of determination.
  208.  
  209.  
  210.         10.) Polynomial regression
  211.  
  212.                 This option shows graphically the points introduced and the
  213.                 best polynomial curve fitted to these points, with the
  214.                 equation and the coefficient of determination, initialy for
  215.                 the second degree equation. The program allows you to try
  216.                 other degrees up to 6 and extrapolate values too.
  217.  
  218.         OBS: In each type of regression allows you to extrapolate values
  219.                 using the E option. A graphic symbol appears on the
  220.                 curve and it is possible to navigate whith the Left and
  221.                 Right arrow keys, as well increase and decrease the step
  222.                 of navigation with + and - keys.
  223.  
  224.         11.) XY operations
  225.  
  226.                 This option allows you to manipulate data for normalizing,
  227.                 adding, etc ... , giving chances to prepare the data for
  228.                 fitting.
  229.  
  230.                 The options of XY operations are:
  231.  
  232.                 -swap X with Y
  233.  
  234.                 change the values of X with Y
  235.  
  236.  
  237.                 -new Y = log(Y)
  238.  
  239.                 calculate Y as log(Y)
  240.  
  241.  
  242.                 -new Y = power of Y
  243.                                 p
  244.                 calculate Y as Y , while p is the power
  245.  
  246.  
  247.                 -new Y = exp(Y)
  248.  
  249.                 calculate Y as exp(Y)
  250.  
  251.  
  252.                 -new Y = 1/Y
  253.  
  254.                 calculate Y as the inverse of Y (or 1/Y)
  255.  
  256.  
  257.                 -add something to Y
  258.  
  259.                 add a constant value to Y
  260.  
  261.  
  262.                 -multiply Y by something
  263.  
  264.                 multiply Y by a constant value
  265.  
  266.  
  267.                 -X ordination, swaping Y
  268.  
  269.                 put the X series in crescent order, changing the position
  270.                 of Y also
  271.  
  272.  
  273.                 -X ordination, Y independent
  274.  
  275.                 put the X series in crescent order, without moving Y
  276.  
  277.  
  278.                 -Y Random generation, same X
  279.  
  280.                 generating a new Y series with randomic numbers, using the
  281.                 same old X
  282.  
  283.  
  284.                 -new Random file generation
  285.  
  286.                 generate a new file with Y series as a random series and X
  287.                 series with the crescent order of series
  288.  
  289.  
  290.                 -replace Y values
  291.  
  292.                 substitute all the Y values that satisfy one of the three
  293.                 following conditions:
  294.  
  295.                 G for greater than a determined value
  296.                 E for equal than a determined value
  297.                 S for smaller than a determined value
  298.  
  299.                 replace the checked values by a new value in all Y series
  300.  
  301.                 example: substitute all values greater than .3 by .1
  302.                          entries:  g  .3  .1
  303.  
  304.                 -extract Y values
  305.  
  306.                 extract from memory all the Y values that satisfy one of the
  307.                 three following conditions:
  308.  
  309.                 G for greater than a determined value
  310.                 E for equal than a determined value
  311.                 S for smaller than a determined value
  312.  
  313.  
  314.                 -return to main menu
  315.  
  316.                 go back to main menu
  317.  
  318.  
  319.         12.) Line graphics
  320.  
  321.                 This option shows graphically the points introduced connected
  322.                 by lines, in the current order.
  323.  
  324.  
  325.         13.) Program references
  326.  
  327.                 Some information about the program and rules for shareware
  328.                 conditions.
  329.  
  330.         Files that come with FIT2
  331.         *************************
  332.  
  333.         FIT2.ZIP - ZIP file containing all files
  334.  
  335.         The files:
  336.  
  337.  
  338.         FIT2.EXE - executable file with the program
  339.  
  340.         FIT2.DOC - document file and manual
  341.  
  342.         EXAMPLE1.DAT - example number 1
  343.  
  344.         EXAMPLE2.DAT - example number 2
  345.  
  346.  
  347.         Learning with an example:
  348.         *************************
  349.  
  350.         Type FIT2 and press RETURN
  351.  
  352.         Press the down arroy key till the DATA ENTRY - FILE and press RETURN
  353.  
  354.         Press RETURN and the file EXAMPLE1.DAT will be loaded
  355.  
  356.         Press RETURN again because the file is a default type
  357.  
  358.         Wait for the loading
  359.  
  360.         Choose the LINE GRAPHIC option and press RETURN
  361.  
  362.         Choose the LINEAR REGRESSION option and press RETURN
  363.  
  364.         Choose the POLYNOMIAL REGRESSION and press RETURN
  365.  
  366.         Press the N key in POLYNOMIAL REGRESSION and choose a degree 4
  367.  
  368.         etc...........................................................
  369.  
  370.  
  371.  
  372.         You can copy FIT2
  373.         *****************
  374.  
  375.         Welcome to FIT2. This is used supported software, or SHAREWARE.
  376.         You are encourage to make copies for your friends,
  377.         as well as trying out the program for yourself.
  378.         If you like it and continue to use it regularly,
  379.         please register your use by sending US$ 25.00 to:
  380.         ARMANDO OSCAR CAVANHA FILHO,
  381.         account number 113000609:01800285338,
  382.         Texas Commerce Bank - 10411 WESTHEIMER - BOX 42370
  383.         Lakeside - HOUSTON, TX, 77242-2370, USA
  384.         For brazilian users, send the cruzeiros equivalent to US$ 25.00 to:
  385.         BRADESCO - AGENCIA 2606-9  - CONTA 1279-3  RIO DE JANEIRO RJ BRAZIL
  386.         Send the receipt to:
  387.         ARMANDO OSCAR CAVANHA FILHO
  388.         AV. CANAL DE MARAPENDI 2500  BL 3  APT 2305
  389.         RIO DE JANEIRO - BRAZIL - 22631   phone (021)3255179
  390.         ...and receive new versions at substantial reduced price.
  391.         Thank you. (AOCF)
  392.  
  393.          Please make copies of the module FIT2.ZIP only.
  394.