How to apply one sample Kolmogorov-Smirnov against a Rician distribution?
2 views (last 30 days)
Show older comments
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);
Answers (0)
See Also
Categories
Find more on Hypothesis Tests in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!