home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
CPM
/
TURBOPAS
/
MAPSTATF.LBR
/
GETCOR.LZB
/
GETCOR.ÌIB
Wrap
Text File
|
2000-06-30
|
1KB
|
44 lines
Procedure getcor(Var cor:NBYN; Var mean, stdev:RVEC; Var varn:S8;
Var nc:Real; sel:IVEC; nv, dv:Integer; Var dfile:Text);
Var
i,j,k,l:Integer;
x,y,z:Real;
dum36:String[36];
dum21:String[21];
dum15:String[15];
name,dum8:String[8];
dum7:String[7];
Begin
Readln(dfile); Readln(dfile);
nc:=1E+37;
For i := 1 To nv Do
Begin
Readln(dfile,name,dum7,x,dum21,y,dum8,z);
For j := 1 To dv Do
Begin
If (sel[j]=i) Then
Begin
If (nc>z) Then nc:=z;
varn[j] := name; mean[j] := x; stdev[j] := y;
End;
End;
End;
For i :=1 to 3 Do Readln(dfile);
For i := 1 To nv-1 Do
For k := i+1 To nv Do
Begin
Readln(dfile,dum36,x,dum15,y);
For j := 1 To dv Do
Begin
cor[j,j] := 1.0;
If (sel[j]=i) Then
For l := 1 To dv Do
If (sel[l]=k) Then
Begin
cor[j,l] := y; cor[l,j] := y;
End;
End;
End;
End; (* Of getcor *)
EC; Var varn:S8;
Var nc:Real; sel:IVEC; nv, dv:Integer; Var dfile:Text);