matlab实现对数正态分布的随机取值

[复制链接]
查看11 | 回复1 | 2008-11-13 17:00:22 | 显示全部楼层 |阅读模式
本人在用lognrnd欲实现对一个服从对数正态分布,均值为60.2,方差为2.9的数进行随机取样时lognrnd(60.2,2.9)(比如取10个样),运行的结果是9个为0,一个为10^17次方的数。。。。这个结果太不合理了,请哪位高手帮忙分析一下。小妹感激不尽!!

回复

使用道具 举报

千问 | 2008-11-13 17:00:22 | 显示全部楼层
你输入help longnrnd后有段显示如下:R = lognrnd(mu,sigma) returns an array of random numbers generated from the lognormal distribution with parameters mu and sigma. mu and sigma are the mean and standard deviation, respectively, of the associated normal distribution. mu and sigma can be vectors, matrices, or multidimensional arrays that h...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836