lognrnd
对数正态随机数
说明
示例
输入参数
输出参量
详细信息
替代功能
lognrnd
是对数正态分布特有的函数。Statistics and Machine Learning Toolbox™ 还提供泛型函数random
,它支持各种概率分布。要使用random
,请创建一个LognormalDistribution
概率分布对象,并将该对象作为输入参量传递,或指定概率分布名称及其参数。请注意,分布特有的函数lognrnd
比泛型函数random
的执行速度要快。要以交互方式生成随机数,请使用
randtool
,它是用于生成随机数的用户界面。
参考
[1] Marsaglia, G., and W. W. Tsang. “A Fast, Easily Implemented Method for Sampling from Decreasing or Symmetric Unimodal Density Functions.” SIAM Journal on Scientific and Statistical Computing. Vol. 5, Number 2, 1984, pp. 349–359.
[2] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed., Hoboken, NJ: John Wiley & Sons, Inc., 1993.
扩展功能
版本历史记录
在 R2006a 之前推出