LazStats: Less hints and warnings.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7897 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2020-11-22 18:49:28 +00:00
parent 9da0a4334a
commit 29721742a0
23 changed files with 39 additions and 22 deletions

View File

@ -8,6 +8,7 @@
unit ABCNestedUnit; unit ABCNestedUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface

View File

@ -4,6 +4,7 @@ unit ABRANOVAUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined} {$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface
uses uses

View File

@ -226,16 +226,15 @@ inherited AxSAnovaForm: TAxSAnovaForm
inherited PageControl: TPageControl inherited PageControl: TPageControl
Height = 397 Height = 397
Width = 457 Width = 457
TabIndex = 2
inherited ReportPage: TTabSheet inherited ReportPage: TTabSheet
Caption = 'ANOVA Results' Caption = 'ANOVA Results'
end end
object PosthocPage: TTabSheet[1] inherited ChartPage: TTabSheet
Caption = 'Post-Hoc' Caption = 'Plots'
TabVisible = False TabVisible = False
end end
inherited ChartPage: TTabSheet[2] object PosthocPage: TTabSheet[2]
Caption = 'Plots' Caption = 'Post-Hoc'
TabVisible = False TabVisible = False
end end
end end

View File

@ -3,13 +3,14 @@
unit AxSANOVAUnit; unit AxSANOVAUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface
uses uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Classes, SysUtils, Forms, Controls, Graphics, Dialogs,
StdCtrls, Buttons, ExtCtrls, ComCtrls, TAStyles, StdCtrls, Buttons, ExtCtrls, ComCtrls, TAStyles,
MainUnit, Globals, DataProcs, ReportFrameUnit, BasicStatsReportAndChartFormUnit; MainUnit, Globals, ReportFrameUnit, BasicStatsReportAndChartFormUnit;
type type

View File

@ -3,6 +3,7 @@
unit BlkANOVAUnit; unit BlkANOVAUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface
@ -175,9 +176,6 @@ const
{ TBlksAnovaForm } { TBlksAnovaForm }
constructor TBlksAnovaForm.Create(AOwner: TComponent); constructor TBlksAnovaForm.Create(AOwner: TComponent);
var
panel: TPanel;
lbl: TLabel;
begin begin
inherited; inherited;

View File

@ -7,6 +7,7 @@
unit BNestAUnit; unit BNestAUnit;
{$MODE objfpc}{$H+} {$MODE objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface

View File

@ -3,6 +3,7 @@
unit WithinANOVAUnit; unit WithinANOVAUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface

View File

@ -167,7 +167,7 @@ var
root_df: IntDyneVec = nil; root_df: IntDyneVec = nil;
a_vars: IntDyneVec = nil; a_vars: IntDyneVec = nil;
b_vars: IntDyneVec = nil; b_vars: IntDyneVec = nil;
selected : IntDyneVec; selected : IntDyneVec = nil;
RowLabels: StrDyneVec = nil; RowLabels: StrDyneVec = nil;
ColLabels: StrDyneVec = nil; ColLabels: StrDyneVec = nil;
CanLabels: StrDyneVec = nil; CanLabels: StrDyneVec = nil;

View File

@ -3,6 +3,7 @@
unit BoxPlotUnit; unit BoxPlotUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface

View File

@ -146,7 +146,6 @@ var
s0 : double; s0 : double;
StatI : double; StatI : double;
Sf : double; Sf : double;
RowLabels, ColLabels : StrDyneVec;
CSq : double; // chi square statistic CSq : double; // chi square statistic
prob : double; // probability of chi square prob : double; // probability of chi square
SurvT : DblDyneVec = nil; SurvT : DblDyneVec = nil;
@ -161,6 +160,8 @@ var
SD : DblDyneVec = nil; SD : DblDyneVec = nil;
SE : DblDyneVec = nil; SE : DblDyneVec = nil;
x : DblDyneVec = nil; // data matrix for independent variables x : DblDyneVec = nil; // data matrix for independent variables
RowLabels : StrDyneVec = nil;
ColLabels : StrDyneVec;
Lo95 : double; Lo95 : double;
Hi95 : double; Hi95 : double;
d : double; d : double;

View File

@ -13,7 +13,7 @@ object CorrespondenceForm: TCorrespondenceForm
OnCreate = FormCreate OnCreate = FormCreate
OnShow = ResetBtnClick OnShow = ResetBtnClick
Position = poMainFormCenter Position = poMainFormCenter
LCLVersion = '2.1.0.0' LCLVersion = '2.0.10.0'
object GroupBox1: TGroupBox object GroupBox1: TGroupBox
AnchorSideLeft.Control = Owner AnchorSideLeft.Control = Owner
AnchorSideRight.Control = Owner AnchorSideRight.Control = Owner

View File

@ -47,7 +47,7 @@ type
ColOut: TBitBtn; ColOut: TBitBtn;
VarList: TListBox; VarList: TListBox;
procedure ColInClick(Sender: TObject); procedure ColInClick(Sender: TObject);
procedure ColListSelectionChange(Sender: TObject; User: boolean); procedure ColListSelectionChange(Sender: TObject; {%H-}User: boolean);
procedure ColOutClick(Sender: TObject); procedure ColOutClick(Sender: TObject);
procedure ComputeBtnClick(Sender: TObject); procedure ComputeBtnClick(Sender: TObject);
procedure FormActivate(Sender: TObject); procedure FormActivate(Sender: TObject);

View File

@ -3,6 +3,7 @@
unit HierarchUnit; unit HierarchUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface

View File

@ -1,6 +1,7 @@
unit RIDITUnit; unit RIDITUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface

View File

@ -1,6 +1,7 @@
unit BasicStatsParamsFormUnit; unit BasicStatsParamsFormUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface

View File

@ -53,7 +53,7 @@ procedure TBlankFrm.FormActivate(Sender: TObject);
var var
w: Integer; w: Integer;
begin begin
w := MaxValue([SaveBtn.Width, PrintBtn.Width, CloseBtn.Width]); w := {%H-}MaxValue([SaveBtn.Width, PrintBtn.Width, CloseBtn.Width]);
SaveBtn.Constraints.MinWidth := w; SaveBtn.Constraints.MinWidth := w;
PrintBtn.Constraints.MinWidth := w; PrintBtn.Constraints.MinWidth := w;
CloseBtn.Constraints.MinWidth := w; CloseBtn.Constraints.MinWidth := w;

View File

@ -1,6 +1,7 @@
unit CorSimUnit; unit CorSimUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface

View File

@ -1,6 +1,7 @@
unit PCurvesUnit; unit PCurvesUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface

View File

@ -1,7 +1,7 @@
unit ProbZUnit; unit ProbZUnit;
{$mode objfpc}{$H+} {$mode objfpc}{$H+}
{$WARN 6058 off : Call to subroutine "$1" marked as inline is not inlined}
interface interface
uses uses

View File

@ -6,7 +6,7 @@ interface
uses uses
Classes, SysUtils, Forms, Controls, ComCtrls, ExtCtrls, StdCtrls, Dialogs, Classes, SysUtils, Forms, Controls, ComCtrls, ExtCtrls, StdCtrls, Dialogs,
PrintersDlgs, MainDM, Utils; PrintersDlgs, MainDM;
type type

View File

@ -596,9 +596,9 @@ procedure HomogeneityTest(GroupCol: integer; VarColumn: integer; NoCases: intege
var var
i, j, k, intvalue, Nf1cells: integer; i, j, k, intvalue, Nf1cells: integer;
min, max: integer; min, max: integer;
zscores: DblDyneMat; zscores: DblDyneMat = nil;
medians: DblDyneVec; medians: DblDyneVec = nil;
cellcnts: IntDyneVec; cellcnts: IntDyneVec = nil;
X: Double; X: Double;
begin begin
if GroupCol >= OS3MainFrm.DataGrid.ColCount then if GroupCol >= OS3MainFrm.DataGrid.ColCount then

View File

@ -1995,9 +1995,9 @@ end;
procedure poisson_cdf_values (VAR n : integer; VAR a : double; VAR x : integer; procedure poisson_cdf_values (VAR n : integer; VAR a : double; VAR x : integer;
VAR fx : double ); VAR fx : double );
VAR VAR
avec : DblDyneVec; avec : DblDyneVec = nil;
fxvec : DblDyneVec; fxvec : DblDyneVec = nil;
xvec : IntDyneVec; xvec : IntDyneVec = nil;
begin begin
SetLength(avec,21); SetLength(avec,21);
SetLength(fxvec,21); SetLength(fxvec,21);

View File

@ -225,6 +225,7 @@ function VecCreate(ALength: Integer; ADefault: Double = 0.0): TDblVector;
var var
i: Integer; i: Integer;
begin begin
Result := nil;
SetLength(Result, ALength); SetLength(Result, ALength);
for i := 0 to High(Result) do for i := 0 to High(Result) do
Result[i] := ADefault; Result[i] := ADefault;
@ -513,6 +514,7 @@ function MatCreate(n, m: Integer; ADefault: Double = 0.0): TDblMatrix;
var var
i, j: Integer; i, j: Integer;
begin begin
Result := nil;
SetLength(Result, n,m); SetLength(Result, n,m);
for i := 0 to n-1 do for i := 0 to n-1 do
for j := 0 to m-1 do for j := 0 to m-1 do
@ -1178,6 +1180,7 @@ function IntVecCreate(n: Integer; ADefault: Integer = 0): TIntVector;
var var
i: Integer; i: Integer;
begin begin
Result := nil;
SetLength(Result, n); SetLength(Result, n);
for i := 0 to High(Result) do for i := 0 to High(Result) do
Result[i] := ADefault; Result[i] := ADefault;
@ -1188,6 +1191,7 @@ function IntMatCreate(n, m: Integer; ADefault: Integer = 0): TIntMatrix;
var var
i, j: Integer; i, j: Integer;
begin begin
Result := nil;
SetLength(Result, n,m); SetLength(Result, n,m);
for i := 0 to n-1 do for i := 0 to n-1 do
for j := 0 to m-1 do for j := 0 to m-1 do
@ -1199,6 +1203,7 @@ function CubeCreate(n1, n2, n3: Integer; ADefault: Double = 0.0): TDblCube;
var var
i,j,k: Integer; i,j,k: Integer;
begin begin
Result := nil;
SetLength(Result, n1, n2, n3); SetLength(Result, n1, n2, n3);
for i := 0 to n1 - 1 do for i := 0 to n1 - 1 do
for j := 0 to n2 - 1 do for j := 0 to n2 - 1 do
@ -1211,6 +1216,7 @@ function IntCubeCreate(n1, n2, n3: Integer; ADefault: Integer = 0): TIntCube;
var var
i, j, k: Integer; i, j, k: Integer;
begin begin
Result := nil;
SetLength(Result, n1, n2, n3); SetLength(Result, n1, n2, n3);
for i := 0 to n1 - 1 do for i := 0 to n1 - 1 do
for j := 0 to n2 - 1 do for j := 0 to n2 - 1 do
@ -1223,6 +1229,7 @@ function QuadCreate(n1, n2, n3, n4: Integer; ADefault: Double = 0.0): TDblQuad;
var var
i, j, k, l: Integer; i, j, k, l: Integer;
begin begin
Result := nil;
SetLength(Result, n1, n2, n3, n4); SetLength(Result, n1, n2, n3, n4);
for i := 0 to n1 - 1 do for i := 0 to n1 - 1 do
for j := 0 to n2 - 1 do for j := 0 to n2 - 1 do
@ -1236,6 +1243,7 @@ function IntQuadCreate(n1, n2, n3, n4: Integer; ADefault: Integer = 0): TIntQuad
var var
i, j, k, l: Integer; i, j, k, l: Integer;
begin begin
Result := nil;
SetLength(Result, n1, n2, n3, 4); SetLength(Result, n1, n2, n3, 4);
for i := 0 to n1 - 1 do for i := 0 to n1 - 1 do
for j := 0 to n2 - 1 do for j := 0 to n2 - 1 do