Дипломная работа: Регресійний аналіз інтервальних даних
> real_viborka:=proc(DIGITS,kol_razb,distrib,parametr,model)
global mass_Y,mass_X1,mass_X2:
local oshibki,nom,i,j:
mass_Y:=array(1..(kol_razb+1)^2):
mass_X1:=array(1..(kol_razb+1)^2):
mass_X2:=array(1..(kol_razb+1)^2):
oshibki:=generator_viborki(DIGITS,(kol_razb+1)^2,distrib,parametr):
nom:=0:
for i from 0 to kol_razb do
for j from 0 to kol_razb do
nom:=nom+1:
mass_Y[nom]:=eval(model,{x1=i/kol_razb,x2=j/kol_razb})+oshibki[nom]:
mass_X1[nom]:=evalf(i/kol_razb):
mass_X2[nom]:=evalf(j/kol_razb):
end do:
end do:
mass_Y:
end proc:
> okrug_real_viborka:=proc(DIGITS,digits_okrug,kol_razb,distrib,
parametr,model)
global VIB:
local okrug_mass_Y,okrug_mass_X1,okrug_mass_X2:
Digits:=digits_okrug:
okrug_mass_Y:=array(1..(kol_razb+1)^2):
okrug_mass_X1:=array(1..(kol_razb+1)^2):
okrug_mass_X2:=array(1..(kol_razb+1)^2):
VIB:=Matrix(1..(kol_razb+1)^2,1..3):
okrug_mass_Y:=real_viborka(DIGITS,kol_razb,distrib,parametr,model):
okrug_mass_X1:=mass_X1: