Why four parameters stick together for PDF and CDF?

1 回表示 (過去 30 日間)
MD JALAL UDDIN
MD JALAL UDDIN 2018 年 11 月 25 日
編集済み: KALYAN ACHARJYA 2018 年 11 月 25 日
% PDF analysis
pd = makedist('Weibull','a',5,'b',2);
overland_pdf.png
z1 = pdf(pd,CS);
z2 = pdf(pd,SCS);
z3 = pdf(pd,VSCS);
z4 = pdf(pd,ESCS);
figure;
hold on;
plot(CS,z1,'g');
set(gca,'fontsize',16)
ylabel('PDF')
xlabel('Rain rate (mm/h)')
plot(SCS,z2,'k');
plot(VSCS,z3,'b');
plot(ESCS,z4,'r');
legend('CS','SCS','VSCS','ESCS')
% CDF analysis
pd1 = makedist('Weibull','a',5,'b',2);
a2 = cdf(pd1,CS);
a3 = cdf(pd1,SCS);
a4 = cdf(pd1,VSCS);
a5 = cdf(pd1,ESCS);
figure;
hold on;
plot(CS,a2,'g');
set(gca,'fontsize',16)
ylabel('CDF')
xlabel('Rain rate (mm/h)')
plot(SCS,a3,'k');
plot(VSCS,a4,'b');
plot(ESCS,a5,'r');
legend('CS','SCS','VSCS','ESCS')
  1 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 11 月 25 日
stick together means?

サインインしてコメントする。

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 11 月 25 日
May be PDF and CDF are same in that case
  2 件のコメント
MD JALAL UDDIN
MD JALAL UDDIN 2018 年 11 月 25 日
Even I tried for different dataset; however, all parameters stick together. Is there problem in the code?
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 11 月 25 日
編集済み: KALYAN ACHARJYA 2018 年 11 月 25 日
There may be possiblity in number of cases PDF and CDF are same. If the PDF becomes zero in respective event.
Why donot you consider simple event occurance as a example and check the code?
Cumulative is the total probability of all below PDF

サインインしてコメントする。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by