lugoo 发表于 2011-6-7 17:34
我看了kstest的句法说明,但发现里面并没有对h = kstest(x,CDF,alpha) 中的CDF做说明,也不清楚这个CDF是字符型的还是一个vector,但感觉像是个数值的vector。
Example 2
Nowlet's generate random numbers from a Weibull distribution, and test againstthat Weibull distribution and an exponential distribution.
x = weibrnd(1, 2, 100, 1);
kstest(x, [x weibcdf(x, 1, 2)])
ans =
0
[]中的内容就是CDF部分。比如我想测试我有一组数据x是不是uniform distributed就用:[h,p]=kstest(x, [x unifcdf(x,0,1)])


雷达卡

京公网安备 11010802022788号







