clc
clear
L=10;
k=5;
n=100;
tek=1000;
for r=1:tek
for j=1:n
for i=1:k
u=rand;
x(i)=-L*log(1-u);
end
y(j)=sum(x);
ort(r)=mean(y)
mcort=mean(ort)
mcvar=var(ort)
t=30:0.5:70;
hist(ort,t)
Hiç yorum yok:
Yorum Gönder