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 CenterFile Exchange 中查找有关 Hypothesis Tests 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by