Is there something wrong with my program?
이전 댓글 표시
function diff=poissontest(alpha,n) x=poissrnd(alpha,n); xr=0:ceil(3*alpha); pxsample=hist(x,xr)/n; pxsample=pxsample(:); %pxsample=(countequal(x,xr)/n); px=poissonpmf(alpha,xr); plot(xr,pxsample,xr,px); diff=sum((pxsample-px).^2);
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 푸아송 분포에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!