資源簡(jiǎn)介
判斷一組數(shù)據(jù)是否符合正態(tài)分布、泊松分布、指數(shù)分布、威布爾分布等。
代碼片段和文件信息
function?f=IsNormDist(Aalpha)
clc;
[musigma]=normfit(A);
p1=normcdf(Amusigma);
[H1s1]=kstest(A[Ap1]alpha);
n=length(A);
if?H1==0
????disp(‘Norm?Distribution‘)
else
????disp(‘Not?Norm?Distribution‘)
end
phat=gamfit(Aalpha);
p2=gamcdf(Aphat(1)phat(2));
[H2s2]=kstest(A[Ap2]alpha)
if?H2==0
????disp(‘Gama?Distribution‘)
else
????disp(‘Not?Gama?Distribution‘)
end
lamda=poissfit(Aalpha);
p3=poisscdf(Alamda);
[H3s3]=ks
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????????906??2009-10-06?10:05??IsNormDist.m
評(píng)論
共有 條評(píng)論