matlab实现对数正态分布的随机取值
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/09/22 08:27:33
matlab实现对数正态分布的随机取值
本人在用lognrnd欲实现对一个服从对数正态分布,均值为60.2,方差为2.9的数进行随机取样时lognrnd(60.2,2.9)(比如取10个样),运行的结果是9个为0,一个为10^17次方的数.这个结果太不合理了,小妹感激不尽!
本人在用lognrnd欲实现对一个服从对数正态分布,均值为60.2,方差为2.9的数进行随机取样时lognrnd(60.2,2.9)(比如取10个样),运行的结果是9个为0,一个为10^17次方的数.这个结果太不合理了,小妹感激不尽!
你输入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 have the same size,which is also the size of R.A scalar input for mu or sigma is expanded to a constant array with the same dimensions as the other input.
这段文字明确的告诉你了,
R = lognrnd (mu,sigma),返回一个随机产生的对数正态分布 .mu和sigma的均值和标准差,mu和sigma可以是 vectors,matrices,or multidimensional array,他们具有相同的大小,和产生的R是一样的.
我翻译水平有限,你自己翻译看看,体会里面的意思吧.
你说的是方差为2.9,不是标准差,
还有问题的话你自己琢磨,多看看help文件有很大的帮助
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 have the same size,which is also the size of R.A scalar input for mu or sigma is expanded to a constant array with the same dimensions as the other input.
这段文字明确的告诉你了,
R = lognrnd (mu,sigma),返回一个随机产生的对数正态分布 .mu和sigma的均值和标准差,mu和sigma可以是 vectors,matrices,or multidimensional array,他们具有相同的大小,和产生的R是一样的.
我翻译水平有限,你自己翻译看看,体会里面的意思吧.
你说的是方差为2.9,不是标准差,
还有问题的话你自己琢磨,多看看help文件有很大的帮助
matlab实现对数正态分布的随机取值
Matlab中生成在[1 10]之间的随机正态分布
如何matlab取正态分布随机数
已知协方差矩阵用MATLAB生成随机正态分布的双变量
怎么蒙特卡洛法在matlab中产生方差为5,均值为20的正态分布随机序列
MATLAB在[1,100]间随机产生服从期望为2,方差为5的正态分布的随机整数
用matlab实现 n维正态分布密度函数的求解,已知均值向量和协方差矩阵
matlab 随机取数问题
有一组数据,结果应该符合幂函数分布.请问在matlab中能否实现数据拟合,并且求出幂函数取对数后的斜率呢
关于matlab的二维正态分布
matlab求解标准正态分布函数的值,是哪个函数?
MATLAB在[0,8]间随机产生服从期望为8,方差为1的正态分布的随机整数,一次产生一个随机数.