How to generate the Weibull's parameters k and c in Matlab?

老子叫甜甜 提交于 2019-12-13 09:48:03

问题


Can anyone explain to me how to generate the Weibull distribution parameters k and c, in Matlab?

I have a file of 8000 data of wind speed, and I'd like to do the following:

  1. Generate the Weibull's k and c parameters of those.
  2. Plot the probability density function against the wind speed.

I am new in Matlab and have not yet been able to do this.


回答1:


If you have the Statistics toolbox, you can use fitdist:

pd = fitdist(x,'Weibull')

where x is your data. I'm guessing it should return the parameters a and b in:

You can then calculate the pdf (and plot it) using the pdf function. There are some examples (albeit for a normal distribution) in the documentation for fitdist.



来源:https://stackoverflow.com/questions/19020238/how-to-generate-the-weibulls-parameters-k-and-c-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!