Matlab 二参数Weibull分布 最小二乘法 参数拟合求解。

6 visualizzazioni (ultimi 30 giorni)
请问已知一组数据,怎么用最小二乘法拟合二参数Weibull分布的参数。恳请指教,谢谢!
参考数据:
FH=[356, 546, 1017,1050,1112,1126,1134,1164,1592,1609,1665,1728,2130,...
2237,2247,2249,2249,2255,2769,3226,3326,3335,3382,3398,3876,3960,...
3972,4433,4652,4878,4991,5059,5150,5181,5403,5622,6309,6783,6938,...
7047,7080,8233,8341,9213,9465,9490,9758,10611,11181,11454,11699,12492];

Risposta accettata

华纳国际开户注册【558766.com】
FH=[....];
n=length(FH);
WeibullF=@(p,FH) 1-exp(-(FH./p(2)).^p(1));
F=([1:n]-0.3)./(n+0.4);   %or F=(1:n)/(n+1)
p=lsqcurvefit(WeibullF,[2 5000],FH,F)
或者:
fitnlm(FH,F,WeibullF,[2 5000])

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!