How to calculate the pdf (probability distribution function) of a data having dimension 25x31x122?
21 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I have a data with rainfall value as dim of 25x31x122 and I want to calculate the pdf and plot it.
Can anyone suggest me how to do in matlab?
0 件のコメント
採用された回答
Bjorn Gustavsson
2021 年 2 月 3 日
One way to do it is using the histogram-function, see the help and documentation. Something like this:
histogram(rainfall(:),min(rainfall(:)):max(rainfall(:)),'Normalization','pdf')
Or you could do the same/similar using ksdensity. But you surely have some type of variation (day-of-year?) in the different dimensions?
HTH
2 件のコメント
Bjorn Gustavsson
2021 年 2 月 3 日
No. You want to get a pdf that fits your rainfall. For that the histogram-plot is the first step to take to get some feel for what the distribution looks like. Once you do that you can use fitdist from the statistics toolbox, or ksdensity. If these tools are not right you can always turn to the file exchange to find tools like these:
pdf-package, pdfanalyze-for-probability-density-estimation, fitmethis, fbd-find-the-best-distribution-tool, fit-distributions-to-censored-data, fitalldist, multihistfit or distributionfit - the file exchange is full of tools for this.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!