You've already forked lazarus-ccr
LazStats: Refactor DataProcs unit, in particular TAB, CSV and SSV import/export routines.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7475 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -132,15 +132,16 @@ const
|
|||||||
1.585,1.575,1.566,1.557,1.548,1.541
|
1.585,1.575,1.566,1.557,1.548,1.541
|
||||||
);
|
);
|
||||||
var
|
var
|
||||||
i, j, GrpVar, MeasVar, mingrp, maxgrp, G, range, grpsize : integer;
|
i, j, GrpVar, MeasVar, mingrp, maxgrp, G, range, grpsize: integer;
|
||||||
oldgrpsize : integer;
|
oldgrpsize: integer;
|
||||||
X, UCL, LCL, UpperSpec, LowerSpec, TargetSpec : double;
|
X, UCL, LCL, UpperSpec, LowerSpec, TargetSpec: double;
|
||||||
xmin, xmax, GrandMean, GrandSD, semean, D3Value, D4Value : double;
|
xmin, xmax, GrandMean, GrandSD, semean: double;
|
||||||
GrandSigma, C4, gamma, B : double;
|
GrandSigma, C4, gamma, B: double;
|
||||||
|
D3Value, D4Value: Double;
|
||||||
means, stddev: DblDyneVec;
|
means, stddev: DblDyneVec;
|
||||||
count : IntDyneVec;
|
count: IntDyneVec;
|
||||||
cellstring: string;
|
cellstring: string;
|
||||||
sizeerror : boolean;
|
sizeerror: boolean;
|
||||||
lReport: TStrings;
|
lReport: TStrings;
|
||||||
|
|
||||||
procedure CleanUp;
|
procedure CleanUp;
|
||||||
@ -234,14 +235,14 @@ begin
|
|||||||
if oldgrpsize <> grpsize then sizeerror := true;
|
if oldgrpsize <> grpsize then sizeerror := true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if (grpsize < 2) or (grpsize > 25) or (sizeerror) then
|
if (grpsize < 2) or (grpsize > 25) or sizeError then
|
||||||
begin
|
begin
|
||||||
MessageDlg('Group sizes error.', mtError, [mbOK], 0);
|
MessageDlg('Group sizes error.', mtError, [mbOK], 0);
|
||||||
CleanUp;
|
CleanUp;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
semean := semean - ((GrandMean * GrandMean) / NoCases);
|
semean := semean - sqr(GrandMean)/NoCases;
|
||||||
semean := semean / (NoCases - 1);
|
semean := semean / (NoCases - 1);
|
||||||
semean := sqrt(semean);
|
semean := sqrt(semean);
|
||||||
GrandSD := semean;
|
GrandSD := semean;
|
||||||
|
@ -639,11 +639,11 @@ begin
|
|||||||
x4 := x1 + triwidth;
|
x4 := x1 + triwidth;
|
||||||
yprop := (YPoints[i-1,j-1] - YMin) / (YMax - YMin);
|
yprop := (YPoints[i-1,j-1] - YMin) / (YMax - YMin);
|
||||||
ydist := round(yprop * YAxisLength);
|
ydist := round(yprop * YAxisLength);
|
||||||
y1 := YStart - yoffset - round(ydist);
|
y1 := YStart - yoffset - ydist;
|
||||||
y2 := y1 - triheight;
|
y2 := y1 - triheight;
|
||||||
yprop := (YPoints[i-1,j] - YMin) / (YMax - YMin);
|
yprop := (YPoints[i-1,j] - YMin) / (YMax - YMin);
|
||||||
ydist := round(yprop * YAxisLength);
|
ydist := round(yprop * YAxisLength);
|
||||||
y3 := ystart - yoffset {%H-}- round(ydist);
|
y3 := ystart - yoffset - ydist;
|
||||||
y4 := y3 - triheight;
|
y4 := y3 - triheight;
|
||||||
points[0] := Point(x1,y1);
|
points[0] := Point(x1,y1);
|
||||||
points[1] := Point(x2,y2);
|
points[1] := Point(x2,y2);
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -97,6 +97,10 @@ const
|
|||||||
|
|
||||||
TWO_PI = 2.0 * PI;
|
TWO_PI = 2.0 * PI;
|
||||||
|
|
||||||
|
TAB_FILE_FILTER = 'Tab field files (*.tab)|*.tab;*.TAB|Text files (*.txt)|*.txt;*.TXT|All files (*.*)|*.*';
|
||||||
|
CSV_FILE_FILTER = 'Comma field files (*.csv)|*.csv;*.CSV|Text files (*.txt)|*.txt;*.TXT|All files (*.*)|*.*';
|
||||||
|
SSV_FILE_FILTER = 'Space field files (*.ssv)|*.ssv;*.SSV|Text files (*.txt)|*.txt;*.TXT|All files (*.*)|*.*';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Reference in New Issue
Block a user