Курсовая работа: Полный факторный эксперимент
var
i, j: byte;
begin
FMain.SGridPlaneMatrix.Cells[ 0, 0 ]:= 'x0';
FMain.SGridPlaneMatrix.Cells[ 1, 0 ]:= 'x1';
FMain.SGridPlaneMatrix.Cells[ 2, 0 ]:= 'x2';
FMain.SGridPlaneMatrix.Cells[ 3, 0 ]:= 'x3';
for i:= 0 to factorNum do
for j:= 1 to planeNum do
FMain.SGridPlaneMatrix.Cells[ i, j ]:= FloatToStr( planingMatrix[ i, j ] );
end;
procedure FillExpMatrix;
var
i, j: byte;
begin
for i:= 1 to expNum do
FMain.SGridY.Cells[ i, 0 ]:= IntToStr( i );
for i:= 1 to planeNum do
FMain.SGridY.Cells[ 0, i ]:= IntToStr( i );
for i:= 1 to expNum do
for j:= 1 to planeNum do
FMain.SGridY.Cells[ i, j ]:= FloatToStrF( expResult[ j, i ], ffFixed, 6, 3 );
end;
procedure FillYAverage;
var
i: byte;
begin
for i:= 0 to 7 do
FMain.SGridYAverage.Cells[ i, 0 ]:= FloatToStrF( yAverage[ i + 1 ], ffFixed, 6, 3 );