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에서 Univariate Discrete Distributions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!