matlab lognormal拟合,lognormal

本文介绍了如何在MATLAB中创建具有指定模式的lognormal分布,并提供了详细的实现步骤。通过输入参数包括模式、标准差和样本数量,生成对应的正态分布并转换为lognormal分布。同时,文章还解释了正常分布与lognormal分布之间的关系,并展示了如何计算输出的lognormal分布的模式、均值和标准差。示例代码演示了如何使用该函数生成特定分布并进行绘图。
摘要由CSDN通过智能技术生成

lognormal: creates lognormal distribution with desired mode (peak-value)

usage: lognormal(mode_log,sigma_n,n,plotit)

--- INPUT arguments:

'mode_log' ---> can be any positive value (is the most frequent value of the lognormal distribution -> the peak in the histogram)

'sigma_n' ---> standard deviation of the corresponding normal distribution

--> CAUTION: it is not the standard deviation of the lognormal distribution, because it is a somewhat unuseful value for an asymmetric distribution

'n' ---> number of n-values the distribution should have

'plotit' ---> plot switch (0=no,1=yes)

How it works:

1.) calculate the mean(normal) from the input mode_log (lognormal) and sigma_n (normal) with mu_n = log(mode_log) + sig_n^2

2.) create random normal distrubution r with n-values

3.) shift and transfo

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值