How to apply one sample Kolmogorov-Smirnov against a Rician distribution?
2 次查看(过去 30 天)
显示 更早的评论
I want to apply a one-sample Kolmogrov-Smirnov test a vector "mydata" of [1,5000] against the Rician distribution to see if it follows a Rician distribution or not. I am not sure if I am doing it correctly. Can anybody confirm me if is it correct or not?
pdData=fitdist(mydata' , 'Rician');
cdfData=cdf ( 'Rician', mydata', pdData.s, pdData.sigma);
testcdf = [mydata',cdfData];
[h,p]=kstest(mydata','CDF',testcdf);
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!