声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 980|回复: 1

[编程技巧] 求助高手来!!!看下我程序的问题!!!!!!!!!

[复制链接]
发表于 2012-5-9 09:07 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
data=(1:99)/100;
[mu,sigma]=lognfit(data)

运行结果:

mu =

   -0.9776    0.9276


sigma =

   -1.1626    0.8139
   -0.7925    1.0784

为什么MU有两个值啊 SIGMA有4个值啊

应该mu,sigma各只有一个值的啊!!!!!!!!!!!!!!!!!!!!!!!!
回复
分享到:

使用道具 举报

发表于 2012-5-9 13:12 | 显示全部楼层
from matlab help
parmhat = lognfit(data) returns a vector of maximum likelihood estimates parmhat(1) = mu and parmhat(2) = sigma of parameters for a lognormal distribution fitting data. mu and sigma are the mean and standard deviation, respectively, of the associated normal distribution.

[parmhat,parmci] = lognfit(data) returns 95% confidence intervals for the parameter estimates mu and sigma in the 2-by-2 matrix parmci. The first column of the matrix contains the lower and upper confidence bounds for parameter mu, and the second column contains the confidence bounds for parameter sigma.
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-11 02:15 , Processed in 0.078468 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表