Курсовая работа: Полный факторный эксперимент
end;
CalculateX:= xResult;
end;
procedure MakeExperiment;
var
xValue: real;
i, j: byte;
begin
for i:= 1 to 8 do
begin
xValue:= CalculateX( i );
for j:= 1 to 10 do
expResult[ i, j ]:= c1 * xValue + c2 * RandomNorm( mF, dF );
end;
end;
procedure CalculateYAverage;
var
i, j: byte;
begin
for i:= 1 to 8 do
begin
yAverage[ i ]:= 0;
for j:= 1 to 10 do
yAverage[ i ]:= yAverage[ i ] + expResult[ i, j ];
yAverage[ i ]:= yAverage[ i ] / expNum;
end;
end;
procedure CalculateRegCoeficients;
var