Weibull cdf
显示 更早的评论
Hello, I have extreme snowfall data in a 18 years period. I want to use Weibull and Frechet cdf. 1) I don't know how to find A and B for my data. 2) Should I use vblcdf(x,A,B)? 3) whitch one I have to use for Frech Thanks for your help.
回答(1 个)
Andrew Newell
2011-2-7
First you need to generate extreme value data to fit. This is done by subsampling:
% Calculate some random samples of snowfall data
sampleSize = 10;
maxValues = zeros(n,1);
for i=1:numel(snowfalldata)
sample = snowfalldata(randperm(n));
sample = sample(1:sampleSize);
maxValues(i) = max(sample);
end
wblplot(maxValues)
parmhat = wblfit(maxValues);
x = linspace(min(snowfalldata(:)),max(snowfalldata(:)));
snowfalldataCDF = wblcdf(x,parmhat(1),parmhat(2));
To do the same for a Frechet distribution, you'll need to use the generalized extreme value distribution in place of the Weibull distribution.
类别
在 帮助中心 和 File Exchange 中查找有关 Weibull Distribution 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!