2020-03-30 18:01:44 +00:00
|
|
|
unit Globals;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
2020-10-10 11:02:59 +00:00
|
|
|
Classes, SysUtils;
|
2020-03-30 18:01:44 +00:00
|
|
|
|
2020-08-23 14:31:05 +00:00
|
|
|
type
|
|
|
|
IntDyneVec = array of integer;
|
|
|
|
DblDyneVec = array of double;
|
|
|
|
BoolDyneVec = array of boolean;
|
|
|
|
DblDyneMat = array of array of double;
|
|
|
|
IntDyneMat = array of array of integer;
|
|
|
|
DblDyneCube = array of array of array of double;
|
|
|
|
IntDyneCube = array of array of array of integer;
|
|
|
|
DblDyneQuad = array of array of array of array of double;
|
|
|
|
IntDyneQuad = array of array of array of array of integer;
|
|
|
|
StrDyneVec = array of string;
|
|
|
|
StrDyneMat = array of array of string;
|
|
|
|
CharDyneVec = array of char;
|
|
|
|
|
|
|
|
Point3D = record
|
|
|
|
x, y, z: double;
|
|
|
|
end;
|
2020-03-30 18:01:44 +00:00
|
|
|
|
2020-08-23 14:31:05 +00:00
|
|
|
PointInt = record
|
|
|
|
x, y: Integer;
|
|
|
|
end;
|
2020-03-30 18:01:44 +00:00
|
|
|
|
|
|
|
TFractionType = (ftPoint, ftComma);
|
|
|
|
TMissingValueCode = (mvcSpace, mvcPeriod, mvcZero, mvcNines);
|
|
|
|
TJustification = (jLeft, jCenter, jRight);
|
|
|
|
|
|
|
|
TOptions = record
|
2020-08-20 21:38:09 +00:00
|
|
|
DefaultDataPath: string;
|
2020-03-30 18:01:44 +00:00
|
|
|
FractionType: TFractionType;
|
|
|
|
DefaultMiss: TMissingValueCode;
|
|
|
|
DefaultJust: TJustification;
|
2020-08-17 14:51:27 +00:00
|
|
|
LHelpPath: String;
|
2020-03-30 18:01:44 +00:00
|
|
|
end;
|
|
|
|
|
2020-10-03 21:49:09 +00:00
|
|
|
ELazStats = class(Exception);
|
|
|
|
|
2020-03-30 18:01:44 +00:00
|
|
|
var
|
|
|
|
NoCases : integer;
|
|
|
|
NoVariables : integer;
|
|
|
|
VarDefined : array[0..500] of boolean;
|
|
|
|
TempStream : TMemoryStream;
|
|
|
|
TempVarItm : TMemoryStream;
|
|
|
|
DictLoaded : boolean;
|
|
|
|
FilterOn : boolean;
|
|
|
|
FilterCol : integer;
|
2020-08-20 21:02:55 +00:00
|
|
|
//OpenStatPath : string;
|
2020-03-30 18:01:44 +00:00
|
|
|
AItems : array[0..8] of string;
|
|
|
|
LoggedOn : boolean = false;
|
|
|
|
|
|
|
|
Options: TOptions = (
|
2020-08-20 21:38:09 +00:00
|
|
|
DefaultDataPath: '';
|
2020-03-30 18:01:44 +00:00
|
|
|
FractionType: ftPoint;
|
|
|
|
DefaultMiss: mvcNines;
|
2020-08-17 14:51:27 +00:00
|
|
|
DefaultJust: jLeft;
|
|
|
|
LHelpPath: '<default>';
|
2020-03-30 18:01:44 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
const
|
|
|
|
FractionTypeChars: array[TFractionType] of char = ('.', ',');
|
|
|
|
MissingValueCodes: array[TMissingValueCode] of string = (' ', '.', '0', '99999');
|
|
|
|
JustificationCodes: array[TJustification] of string[1] = ('L', 'C', 'R');
|
|
|
|
|
2020-08-23 14:31:05 +00:00
|
|
|
TOL = 0.0005;
|
|
|
|
|
2020-11-16 14:40:24 +00:00
|
|
|
MAX_FLOAT: Double = 1E308;
|
|
|
|
|
2020-03-30 18:01:44 +00:00
|
|
|
DEFAULT_CONFIDENCE_LEVEL_PERCENT = 95.0;
|
|
|
|
DEFAULT_ALPHA_LEVEL = 0.05;
|
|
|
|
DEFAULT_BETA_LEVEL = 0.20;
|
|
|
|
|
2020-04-10 15:30:19 +00:00
|
|
|
DIVIDER = '===========================================================================';
|
2020-05-04 22:35:23 +00:00
|
|
|
DIVIDER_SMALL = '---------------------------------------------------------------------------';
|
2020-09-28 10:59:09 +00:00
|
|
|
DIVIDER_AUTO = '@=';
|
|
|
|
DIVIDER_SMALL_AUTO = '@-';
|
2020-04-10 15:30:19 +00:00
|
|
|
|
2020-10-10 11:02:59 +00:00
|
|
|
GRAPH_BACK_COLOR = $F0FBFF; // clCream
|
|
|
|
GRAPH_WALL_COLOR = $808080; // clGray
|
|
|
|
GRAPH_FLOOR_COLOR = $C0C0C0; // clLtGray
|
2020-03-30 18:01:44 +00:00
|
|
|
|
2020-05-26 22:45:40 +00:00
|
|
|
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 (*.*)|*.*';
|
|
|
|
|
2020-09-22 13:20:08 +00:00
|
|
|
DEFAULT_WIDTH = 1000;
|
|
|
|
DEFAULT_HEIGHT = 500;
|
|
|
|
|
2020-03-30 18:01:44 +00:00
|
|
|
implementation
|
|
|
|
|
|
|
|
end.
|
|
|
|
|