This program is used to determine the probability distribution form of a given data source with a confidence rate of 0.05. A has the form n×1. A=A(:);
[ahat, bhat] = unifit(A);
p1 = unifcdf(A, ahat, bhat);
[h1, s1] = kstest(A, [A, p1], 0.05);
if h1 ==0
disp('The data source obeys the standard uniform distribution.')
else
disp('The data source does not obey the standard uniform distribution.')
end
Determine whether the data obeys a uniform distribution
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326610351&siteId=291194637
Ranking