home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug117.arc
/
REGRESS.LBR
/
REGRESS.DQC
/
REGRESS.DOC
Wrap
Text File
|
1979-12-31
|
1KB
|
28 lines
PASCAL MT+ IMPLEMENTATION OF LINEAR REGRESSION
===============================================
NOTES :This program will calculate linear regression along a least squares
line and from the data points calculates the errors in the slope and the Y
intercept.
This program will encounter division by zero errors in the following
cases
1) when only two data points are specified a division by zero error is
encountered in calculating the error in the curve
2)for obvious reasons when only one data point is specified.
û
In its .com form the program will accept a maximum of 100 data points
The program sends a hex 0C (control L ) for clear screen
and hex 1B,41 for cursor up. If these do not match your video controller the
program will have to be modified and recompiled or your screen might do some
odd things.
Aside from the notes made in the source code there is no reason why
this program should not be compilable on other compilers
I do know it will not compile under turbo pascal due to the EXIT
procedure being unavailable,
copyright Bob Lunnon. 1984