Is there something wrong with my program?
Afficher commentaires plus anciens
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);
Réponses (0)
Catégories
En savoir plus sur 이산 분포 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!