home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Education
/
collectionofeducationcarat1997.iso
/
SCIENCE
/
FIT2_117.ZIP
/
FIT2.DOC
< prev
next >
Wrap
Text File
|
1991-05-21
|
14KB
|
394 lines
FIT2.EXE, curve fitting and data modeling
*****************************************
____________________
│ │
│ version 1.17 │
│ │
│ May / 1991 │
│____________________│
What is FIT2 ?
**************
FIT2 is a tool that allows you to find closed-form solution to both
linear and non-linear modelling problems.
What are the main resources of FIT2 ?
*************************************
- FIT2 produces screen graphics that are automatic scaled and
displayed in CGA mode (or EGA, VGA, depending the graphic card
you desire). A HERCULES GRAPHICS ADAPTER with CGA emulator will
also work fine.
- FIT2 provides very powerful data analysis tools that include not
only linear regression analysisbut non-linear and specially
polynomial regression.
- FIT2 allows you to extrapolate values for any curve, with a
graphical vision.
- with FIT2 you can make data transformation like adding something
to Y series, or generating a random Y series, etc.
- FIT2 uses a ASCII open format for data files and it provides a
simple way to export and import data from/to popular spreadsheet
and others packages interfaced with FIT2.
Why FIT2 ?
**********
I wrote FIT2 because I use data analysis daily and needed a little
more than the spreadsheets had to offer. I do have several other
curve fitting programs at my disposal, and no doubt they have some
great features, but I have yet to find one with this friendly
interface.
I was tempted to write a full curve fitting in the beginning, but
I have decided against it since comercial packages actually does
quite nicely under most circumstances: they come with expensive
packages, they have high level routines, and they will do most
everything you need a curve fitting program will do. Because of
that, I decided to simply write something simple to solve the common
problems that I have.
Are there any outstanding bugs that you know of?
************************************************
FIT2 has been tested on an IBM PC, PC/XT, PC/AT, PC386 and laptops as
TOSHIBA T1000, T3100 computers. No troubles were detected. You can
use up to 5000 data points. Sometimes overflow occurs because in this
version I have used single precision values.
Lets explain each of the features of FIT2:
******************************************
1.) data entry - keyboard
This is the mechanism used to introduce data using the
keyboard, without edition. After FIT2 is loaded the default
is the keyboard data entry option. You can move to other
options pressing up or down the arrow key.
2.) data entry - file
This feature allows you to select a file (extension .DAT) to
load the data to the memory and work. Pressing the up or down
arrow key, point to the name of the file desired to load and
press RETURN.
The seventy first characters of the 10 top lines are displayed
with the reference position of each digit of the file data.
Choose the correct distribution of digits and enter with the
loading data.
example:
seventy characters of the 10 top lines: xxxxxx (below)
Supose that you want to do the variable C as X and the
variable A as Y. Than choose the following:
A B C D
1 5 81 41
2 3 82 42
3 4 85 43
4 4 82 42
5 8 83 41
6 11 87 42
7 52 88 43
8 12 89 40
9.5 7 111 19
12 11 101 58
1........01........01.......01........01.....................
│ │ │ │
│ │ │ │final position
│ │ │ │of X variable
│ │ │
│ │ │
│ │ │initial position
│ │ │of X variable
│ │
│ │final position
│ │of Y variable
│
│
│initial position
│of Y variable
Enter the values for each position or ENTER for defaults.
If there are "dummy lines" or lines that the program have
to jump (skip) when reading data. For example, imagine that
one line is usefull and the other is unusefull, till the end
of the file. So inform to the dummy lines question the
value 1, for read one line and skip the following, and so on.
With dummy lines=2
3 read this line
5 do not read
6 do not read
9 read this line
12 do not read
34 do not read
12 read this line
................
................
For exit without loading file enter 0 (zero) for each
question.
3.) Save current data
This feature allows you to save the current data in disk
files with .DAT extension name.
Only after saved the current data, the TITLE will be
displayed on the top of each graphic screen.
The format used for saving data on disk is with five
integers and four decimals, separeted by a dot (#####.####).
4.) Edit current data
This is how you change the values of the current memory. The
options are showed at the bottom line and it is possible to:
- delete a value pressing DEL and giving the order of the
value to be deleted.
- modify a value pressing F1 and giving the order and
contents of X and Y variables.
- insert a new value pressing INS and giving the position
as well the contents of X and Y values.
- move to bottom (END) or top (HOME) or each page up (PGUP)
or each page down (PGDN).
5.) Print current data
This option allows you to output the current value on the
printer.
6.) Linear regression
This option shows graphically the points introduced and the
best line fitted to these points, with the equation and the
coefficient of determination.
7.) Exponential regression
This option shows graphically the points introduced and the
best exponential curve fitted to these points, with the
equation and the coefficient of determination.
8.) Geometric regression
This option shows graphically the points introduced and the
best geometric curve fitted to these points, with the
equation and the coefficient of determination.
9.) L